From acb4e6d17ef90d83e4d89395e914f74456de0e7a Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 10 Jul 2023 11:05:22 -0700 Subject: [PATCH] wasm: fix intptr warning --- damus-c/nostrscript.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/damus-c/nostrscript.c b/damus-c/nostrscript.c index 9697c44f..48e44853 100644 --- a/damus-c/nostrscript.c +++ b/damus-c/nostrscript.c @@ -56,7 +56,8 @@ static int nostr_cmd(struct wasm_interp *interp) { // length len = params[2].num.i32; - return nscript_nostr_cmd(interp, cmd, val ? (void*)val : (void*)ival, len); + intptr_t iptr = ival; + return nscript_nostr_cmd(interp, cmd, val ? (void*)val : (void*)iptr, len); } static int print_utf16_str(u16 *chars) {