aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/win.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-08-02 22:42:58 +0200
committerDavid Robillard <d@drobilla.net>2019-08-02 23:34:29 +0200
commit45f8844ca04de650d7f4d2f0b1b517754b529648 (patch)
treefb688b495c511a9447f0dbeb6536b3aa1cfedffb /pugl/detail/win.c
parenteb443a7aed83700ede5a56526a85f13a8a2981c6 (diff)
downloadpugl-45f8844ca04de650d7f4d2f0b1b517754b529648.tar.gz
pugl-45f8844ca04de650d7f4d2f0b1b517754b529648.tar.bz2
pugl-45f8844ca04de650d7f4d2f0b1b517754b529648.zip
Fix unnecessary conversions
Diffstat (limited to 'pugl/detail/win.c')
-rw-r--r--pugl/detail/win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pugl/detail/win.c b/pugl/detail/win.c
index 5922769..93dce9d 100644
--- a/pugl/detail/win.c
+++ b/pugl/detail/win.c
@@ -57,7 +57,7 @@ puglUtf8ToWideChar(const char* const utf8)
{
const int len = MultiByteToWideChar(CP_UTF8, 0, utf8, -1, NULL, 0);
if (len > 0) {
- wchar_t* result = (wchar_t*)calloc(len, sizeof(wchar_t));
+ wchar_t* result = (wchar_t*)calloc((size_t)len, sizeof(wchar_t));
MultiByteToWideChar(CP_UTF8, 0, utf8, -1, result, len);
return result;
}