mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
typed arrays: fix build on sunos
This commit is contained in:
1 parent
7be27240b5
commit
35a137cf8d
1 file changed
+2
@@ -131,6 +131,8 @@ inline uint8_t SwapBytes(uint8_t x) { return x; }
|
||||
template <>
|
||||
inline int8_t SwapBytes(int8_t x) { return x; }
|
||||
template <>
|
||||
inline signed char SwapBytes(signed char x) { return x; }
|
||||
template <>
|
||||
inline uint16_t SwapBytes(uint16_t x) { return V8_TYPED_ARRAY_BSWAP16(x); }
|
||||
template <>
|
||||
inline int16_t SwapBytes(int16_t x) { return V8_TYPED_ARRAY_BSWAP16(x); }
|
||||
|
||||
Reference in new issue
Block a user