summaryrefslogtreecommitdiff
path: root/src/drivers/GDI
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2022-11-11 19:27:00 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2022-11-11 19:27:00 +0100
commit8d636d931eb4101d15ab74493be2bc762e0f1796 (patch)
tree75620eec40ce76073db53f567a794edd696cf5e3 /src/drivers/GDI
parent578601f062c9a83abd0d01a73b79aebd057becb6 (diff)
Fix Visual Studio compiler warnings
Diffstat (limited to 'src/drivers/GDI')
-rw-r--r--src/drivers/GDI/Fl_GDI_Graphics_Driver_font.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver_font.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver_font.cxx
index 82bf2078a..c5a6e0308 100644
--- a/src/drivers/GDI/Fl_GDI_Graphics_Driver_font.cxx
+++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver_font.cxx
@@ -223,11 +223,11 @@ Fl_GDI_Font_Descriptor::Fl_GDI_Font_Descriptor(const char* name, Fl_Fontsize fsi
case ' ': break;
default: name--;
}
- int wn = fl_utf8toUtf16(name, strlen(name), wstr, wstr_len);
+ int wn = fl_utf8toUtf16(name, (unsigned int)strlen(name), wstr, wstr_len);
if (wn >= wstr_len) {
wstr = (unsigned short*) realloc(wstr, sizeof(unsigned short) * (wn + 1));
wstr_len = wn + 1;
- wn = fl_utf8toUtf16(name, strlen(name), wstr, wstr_len);
+ wn = fl_utf8toUtf16(name, (unsigned int)strlen(name), wstr, wstr_len);
}
fid = CreateFontW(