Skip to content

Commit 506f93c

Browse files
authored
Simplify use of _Generic C version of EM_ASM. NFC (#16939)
1 parent c012a6a commit 506f93c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

system/include/emscripten/em_asm.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,11 @@ void emscripten_asm_const_async_on_main_thread(
6666

6767
// We can use the generic selection C11 feature (that clang supports pre-C11
6868
// as an extension) to emulate function overloading in C.
69-
// All pointer types should go through the default case.
69+
// All other types, including *all* pointer types go through the default case.
7070
#define _EM_ASM_SIG_CHAR(x) _Generic((x), \
7171
float: 'f', \
7272
double: 'd', \
73-
int: 'i', \
7473
long long: 'j', \
75-
unsigned: 'i', \
7674
default: 'i')
7775

7876
// This indirection is needed to allow us to concatenate computed results, e.g.

0 commit comments

Comments
 (0)