diff options
Diffstat (limited to 'nexell/nexell_drm.c')
-rw-r--r-- | nexell/nexell_drm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nexell/nexell_drm.c b/nexell/nexell_drm.c index 867c8804..56f0f8ff 100644 --- a/nexell/nexell_drm.c +++ b/nexell/nexell_drm.c @@ -42,7 +42,7 @@ int nx_alloc_gem(int drm_fd, int size, int flags) struct nx_drm_gem_create arg = { 0, }; int ret; - arg.size = (uint64_t)size; + arg.size = (uint64_t)(unsigned int)size; arg.flags = flags; ret = drmCommandWriteRead(drm_fd, DRM_NX_GEM_CREATE, &arg, |