diff options
author | Konstantin Käfer <konstantin@mapbox.com> | 2014-10-15 14:31:19 +0000 |
---|---|---|
committer | Konstantin Käfer <konstantin@mapbox.com> | 2014-10-15 14:31:19 +0000 |
commit | 5f40d27256b5da164bfdd19253ca4c2078b1800a (patch) | |
tree | 24570e6668df093edabfdda4f002f7126c913842 /common | |
parent | 8eda68dd8a24ee5025db82d02f952fdd5921eea3 (diff) | |
download | qtlocation-mapboxgl-5f40d27256b5da164bfdd19253ca4c2078b1800a.tar.gz |
cast to correct int type
Diffstat (limited to 'common')
-rw-r--r-- | common/headless_view.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/headless_view.cpp b/common/headless_view.cpp index 51196faede..c482bbd8b3 100644 --- a/common/headless_view.cpp +++ b/common/headless_view.cpp @@ -114,8 +114,8 @@ void HeadlessView::resize(uint16_t width, uint16_t height, float pixelRatio) { #if MBGL_USE_GLX int attributes[] = { - GLX_PBUFFER_WIDTH, w, - GLX_PBUFFER_HEIGHT, h, + GLX_PBUFFER_WIDTH, static_cast<int>(w), + GLX_PBUFFER_HEIGHT, static_cast<int>(h), None }; glx_pbuffer = glXCreatePbuffer(x_display, fb_configs[0], attributes); |