Skip to content

Commit

Permalink
Fix copy&paste error in C library
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig committed Jul 7, 2018
1 parent 8187bdd commit bc7a527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansi-c/library/inet.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ uint16_t htons(uint16_t hostshort)
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
return __builtin_bswap16(hostshort);
#else
return hostlong;
return hostshort;
#endif
}

Expand Down

0 comments on commit bc7a527

Please sign in to comment.