aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/defs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/defs.h b/src/core/defs.h
index ed2e353f..92ebdb86 100644
--- a/src/core/defs.h
+++ b/src/core/defs.h
@@ -55,7 +55,7 @@ typedef struct {
#define NNI_PUT16(ptr, u) \
do { \
(ptr)[0] = (uint8_t) (((uint16_t) (u)) >> 8); \
- (ptr)[0] = (uint8_t) ((uint16_t) (u)); \
+ (ptr)[1] = (uint8_t) ((uint16_t) (u)); \
} \
while (0)