1 diff --git src/scripts.c src/scripts.c
2 index 16784fc..71efc50 100644
5 @@ -3231,16 +3231,17 @@ sutil_checksum(JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, s
10 GChecksumType type = G_CHECKSUM_SHA256;
13 - type = JSValueToNumber(ctx, argv[1], exc);
15 + dtype = JSValueToNumber(ctx, argv[1], exc);
21 - type = MIN(MAX(type, G_CHECKSUM_MD5), G_CHECKSUM_SHA256);
22 + type = MIN(MAX((GChecksumType)dtype, G_CHECKSUM_MD5), G_CHECKSUM_SHA256);
24 checksum = g_compute_checksum_for_data(type, original, -1);
26 @@ -6247,11 +6248,14 @@ gobject_unblock_signal(JSContextRef ctx, JSObjectRef function, JSObjectRef this,
28 gobject_disconnect(JSContextRef ctx, JSObjectRef function, JSObjectRef this, size_t argc, const JSValueRef argv[], JSValueRef* exc)
31 - if (argc > 0 && JSValueIsNumber(ctx, argv[0]) && !isnan(id = JSValueToNumber(ctx, argv[0], exc)))
33 + return JSValueMakeBoolean(ctx, false);
35 + double id = JSValueToNumber(ctx, argv[0], exc);
38 GObject *o = JSObjectGetPrivate(this);
39 - if (o != NULL && g_signal_handler_is_connected(o, id))
40 + if (o != NULL && g_signal_handler_is_connected(o, (int)id))
42 sigdata_remove(id, o);
43 g_signal_handler_disconnect(o, id);