fix compiler warnings

This commit is contained in:
2026-02-20 12:44:18 -06:00
parent 54e5be0773
commit c0aff9e9bf
13 changed files with 33 additions and 24 deletions

View File

@@ -56,7 +56,7 @@
static void *get_blob_check_bits(JSContext *js, JSValue val, size_t expected_bits, const char *name) {
size_t bits;
void* result = js_get_blob_data_bits(js, &bits, val);
if (result == -1) {
if (result == (void *)-1) {
return NULL; // Exception already thrown by js_get_blob_data_bits
}
@@ -70,7 +70,7 @@ static void *get_blob_check_bits(JSContext *js, JSValue val, size_t expected_bit
// Helper to get any blob data (checking it is a stoned blob)
static void *get_blob_any(JSContext *js, JSValue val, size_t *out_bits, const char *name) {
void *result = js_get_blob_data_bits(js, out_bits, val);
if (result == -1)
if (result == (void *)-1)
return NULL;
return result;
}