fix compiler warnings
This commit is contained in:
4
crypto.c
4
crypto.c
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user