We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 936b4f8 commit e4e13f0Copy full SHA for e4e13f0
src/lib/libsyscall.js
@@ -107,7 +107,7 @@ var SyscallsLibrary = {
107
// select(2) is declared to accept "struct timeval { time_t tv_sec; suseconds_t tv_usec; }".
108
// However, musl passes the two values to the syscall as an array of long values.
109
// Note that sizeof(time_t) != sizeof(long) in wasm32. The former is 8, while the latter is 4.
110
- // This means using "C_STRUCTS.timeval.tv_usec" leads to a wrong offset.
+ // This means using "C_STRUCTS.timeval\.tv_usec" leads to a wrong offset.
111
// So, instead, we use POINTER_SIZE.
112
var tv_sec = ({{{ makeGetValue('timeout', 0, 'i32') }}}),
113
tv_usec = ({{{ makeGetValue('timeout', POINTER_SIZE, 'i32') }}});
0 commit comments