Skip to content

Commit 5374a0a

Browse files
author
Mike Pall
committed
Fix compiler warning.
1 parent 20f556e commit 5374a0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lj_serialize.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,13 @@ static char *serialize_put(char *w, StrBuf *sbuf, cTValue *o)
224224
ud = lj_bswap(ud);
225225
#endif
226226
*w++ = SER_TAG_LIGHTUD32; memcpy(w, &ud, 4); w += 4;
227+
#if LJ_64
227228
} else {
228229
#if LJ_BE
229230
ud = lj_bswap64(ud);
230231
#endif
231232
*w++ = SER_TAG_LIGHTUD64; memcpy(w, &ud, 8); w += 8;
233+
#endif
232234
}
233235
} else {
234236
/* NYI userdata */

0 commit comments

Comments
 (0)