diff options
author | David Robillard <d@drobilla.net> | 2019-08-02 22:42:58 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-08-02 23:34:29 +0200 |
commit | 45f8844ca04de650d7f4d2f0b1b517754b529648 (patch) | |
tree | fb688b495c511a9447f0dbeb6536b3aa1cfedffb | |
parent | eb443a7aed83700ede5a56526a85f13a8a2981c6 (diff) | |
download | pugl-45f8844ca04de650d7f4d2f0b1b517754b529648.tar.gz pugl-45f8844ca04de650d7f4d2f0b1b517754b529648.tar.bz2 pugl-45f8844ca04de650d7f4d2f0b1b517754b529648.zip |
Fix unnecessary conversions
-rw-r--r-- | pugl/detail/win.c | 2 | ||||
-rw-r--r-- | pugl/detail/x11_cairo.c | 4 |
2 files changed, 3 insertions, 3 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; } diff --git a/pugl/detail/x11_cairo.c b/pugl/detail/x11_cairo.c index 1867007..d5e2ed7 100644 --- a/pugl/detail/x11_cairo.c +++ b/pugl/detail/x11_cairo.c @@ -55,8 +55,8 @@ static int puglX11CairoCreate(PuglView* view) { PuglInternals* const impl = view->impl; - const double width = view->width; - const double height = view->height; + const int width = view->width; + const int height = view->height; PuglX11CairoSurface surface = { 0 }; surface.back = cairo_xlib_surface_create( |