Skip to content

Commit 2917a0c

Browse files
authored
libc-builtin: Fix the signature of strncasecmp native function (#888)
Fix the signature invalid issue in libc-builtin, modify signature of strncasecmp native function from "($$i)" to "($$i)i".
1 parent e3ef216 commit 2917a0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/iwasm/libraries/libc-builtin/libc_builtin_wrapper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ static NativeSymbol native_symbols_libc_builtin[] = {
11611161
REG_NATIVE_FUNC(strtol, "($*i)i"),
11621162
REG_NATIVE_FUNC(strtoul, "($*i)i"),
11631163
REG_NATIVE_FUNC(memchr, "(*ii)i"),
1164-
REG_NATIVE_FUNC(strncasecmp, "($$i)"),
1164+
REG_NATIVE_FUNC(strncasecmp, "($$i)i"),
11651165
REG_NATIVE_FUNC(strspn, "($$)i"),
11661166
REG_NATIVE_FUNC(strcspn, "($$)i"),
11671167
REG_NATIVE_FUNC(strstr, "($$)i"),

0 commit comments

Comments
 (0)