diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-12-16 14:41:44 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-12-16 14:41:44 +0100 |
| commit | 28fb1bb0c092315ec731f2f1ec4b5f95a7697a94 (patch) | |
| tree | ec21fb00bbd3c1e6ad11c6f37b1450117661a5e5 /src | |
| parent | cc12620868610d350908e77adfdf2e12112f840c (diff) | |
| download | box64-28fb1bb0c092315ec731f2f1ec4b5f95a7697a94.tar.gz box64-28fb1bb0c092315ec731f2f1ec4b5f95a7697a94.zip | |
[BOX32][WRAPPER] Silence some conversion warnings
Diffstat (limited to 'src')
| -rw-r--r-- | src/include/box32.h | 3 | ||||
| -rw-r--r-- | src/wrapped32/wrappedlibxfixes.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/include/box32.h b/src/include/box32.h index cbf97767..c8c7424f 100644 --- a/src/include/box32.h +++ b/src/include/box32.h @@ -88,6 +88,9 @@ static inline ptr_t to_ptrv_silent(void* p) { static inline void* from_ptriv(ptr_t l) { return from_ptrv(from_ptri(ptr_t, l)); } +static inline ptr_t to_ulong_silent(unsigned long l) { + return (ulong_t)l; +} ulong_t to_hash(uintptr_t p); ulong_t to_hash_d(uintptr_t p); diff --git a/src/wrapped32/wrappedlibxfixes.c b/src/wrapped32/wrappedlibxfixes.c index 07373933..57459557 100644 --- a/src/wrapped32/wrappedlibxfixes.c +++ b/src/wrapped32/wrappedlibxfixes.c @@ -48,7 +48,7 @@ EXPORT void* my32_XFixesGetCursorImage(x64emu_t* emu, void* dpy) my_XFixesCursorImage_t* src = ret; my_XFixesCursorImage_32_t* dst = ret; for(size_t i=0; i<src->width*src->height; ++i) - ((ulong_t*)src->pixels)[i] = to_ulong(src->pixels[i]); + ((ulong_t*)src->pixels)[i] = to_ulong_silent(src->pixels[i]); dst->x = src->x; dst->y = src->y; dst->width = src->width; |