aboutsummaryrefslogtreecommitdiff
path: root/src/win/graph/win_font.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/win/graph/win_font.cpp')
-rw-r--r--src/win/graph/win_font.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win/graph/win_font.cpp b/src/win/graph/win_font.cpp
index 0eb5e6b2..96983d3e 100644
--- a/src/win/graph/win_font.cpp
+++ b/src/win/graph/win_font.cpp
@@ -13,7 +13,7 @@ WinFontDescriptor::WinFontDescriptor(GraphManager* graph_manager,
float font_size) {
assert(graph_manager);
std::array<wchar_t, LOCALE_NAME_MAX_LENGTH> buffer;
- if (!::GetUserDefaultLocaleName(buffer.data(), buffer.size()))
+ if (!::GetUserDefaultLocaleName(buffer.data(), static_cast<int>(buffer.size())))
throw Win32Error(::GetLastError(), "Failed to get locale.");
ThrowIfFailed(graph_manager->GetDWriteFactory()->CreateTextFormat(