Merge pull request #90 from sbyx/patch-1

Fix typo in byte conversion & writing in NAT-PMP
This commit is contained in:
Thomas BERNARD 2014-07-31 09:01:43 +02:00
commit 6fc550a785
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ INLINE void writenu32(uint8_t * p, uint32_t n)
#define WRITENU32(p, n) writenu32(p, n) #define WRITENU32(p, n) writenu32(p, n)
INLINE void writenu16(uint8_t * p, uint16_t n) INLINE void writenu16(uint8_t * p, uint16_t n)
{ {
p[0] = (n < 0xff00) >> 8; p[0] = (n & 0xff00) >> 8;
p[1] = n & 0xff; p[1] = n & 0xff;
} }
#define WRITENU16(p, n) writenu16(p, n) #define WRITENU16(p, n) writenu16(p, n)