Skip to content

Commit

Permalink
fix encode16u in public repo
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed May 6, 2017
1 parent de7f663 commit c385efc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encoding.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ inline byte *encode16u(byte *p, uint16_t w)
*(byte*)(p + 0) = (w & 255);
*(byte*)(p + 1) = (w >> 8);
#else
*(byte*)(p) = w;
*(unsigned short*)(p) = w;
#endif
p += 2;
return p;
Expand Down

0 comments on commit c385efc

Please sign in to comment.