@@ -48,7 +48,7 @@ i64 coreGetNanos(void);
// TODO: replace typeof with auto when available
#define coreSwap(a, b) \
do { \
- typeof(*a) tmp = *(a); \
+ typeof(*(a)) tmp = *(a); \
*(a) = *(b); \
*(b) = tmp; \
} while(0)