Skip to content

Commit bc7a527

Browse files
committed
Fix copy&paste error in C library
1 parent 8187bdd commit bc7a527

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ansi-c/library/inet.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ uint16_t htons(uint16_t hostshort)
113113
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
114114
return __builtin_bswap16(hostshort);
115115
#else
116-
return hostlong;
116+
return hostshort;
117117
#endif
118118
}
119119

0 commit comments

Comments
 (0)