summaryrefslogtreecommitdiff
path: root/content/handlers/javascript/duktape
diff options
context:
space:
mode:
authorDeltaVonNeumann <deltavprogrammer@gmail.com>2023-06-17 10:29:39 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2023-06-17 10:29:39 +0100
commita16d5ff10b2225c7cf7b33ddfff1d947b0dbe40a (patch)
treef741f98765b955eb0ac893991dd83cf91616f210 /content/handlers/javascript/duktape
parent21e636a3a6056c23bbd4257f50315532fe010aa5 (diff)
downloadnetsurf-a16d5ff10b2225c7cf7b33ddfff1d947b0dbe40a.tar.gz
netsurf-a16d5ff10b2225c7cf7b33ddfff1d947b0dbe40a.tar.bz2
Avoid integer types with platform dependent size
Diffstat (limited to 'content/handlers/javascript/duktape')
-rw-r--r--content/handlers/javascript/duktape/dukky.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/content/handlers/javascript/duktape/dukky.c b/content/handlers/javascript/duktape/dukky.c
index 52a9c82cf..c0a2749a9 100644
--- a/content/handlers/javascript/duktape/dukky.c
+++ b/content/handlers/javascript/duktape/dukky.c
@@ -1156,7 +1156,7 @@ static void dukky_generic_event_handler(dom_event *evt, void *pw)
NSLOG(dukky, DEBUG, "Unable to find the event name");
return;
}
- NSLOG(dukky, DEBUG, "Event's name is %*s", dom_string_length(name),
+ NSLOG(dukky, DEBUG, "Event's name is %*s", (int)dom_string_length(name),
dom_string_data(name));
exc = dom_event_get_event_phase(evt, &phase);
if (exc != DOM_NO_ERR) {
@@ -1394,10 +1394,10 @@ void dukky_register_event_listener_for(duk_context *ctx,
if (exc != DOM_NO_ERR) {
NSLOG(dukky, DEBUG,
"Unable to register listener for %p.%*s", ele,
- dom_string_length(name), dom_string_data(name));
+ (int)dom_string_length(name), dom_string_data(name));
} else {
NSLOG(dukky, DEBUG, "have registered listener for %p.%*s",
- ele, dom_string_length(name), dom_string_data(name));
+ ele, (int)dom_string_length(name), dom_string_data(name));
}
dom_event_listener_unref(listen);
}