about summary refs log tree commit diff stats
path: root/src/include
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-12-16 14:41:44 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-12-16 14:41:44 +0100
commit28fb1bb0c092315ec731f2f1ec4b5f95a7697a94 (patch)
treeec21fb00bbd3c1e6ad11c6f37b1450117661a5e5 /src/include
parentcc12620868610d350908e77adfdf2e12112f840c (diff)
downloadbox64-28fb1bb0c092315ec731f2f1ec4b5f95a7697a94.tar.gz
box64-28fb1bb0c092315ec731f2f1ec4b5f95a7697a94.zip
[BOX32][WRAPPER] Silence some conversion warnings
Diffstat (limited to 'src/include')
-rw-r--r--src/include/box32.h3
1 files changed, 3 insertions, 0 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);