commit da1a6c3c7d1b656fd243c8ec479bbc029046c353 parent e2aebdd5427ecd0f3b4f776a55eb715862e73db6 Author: Michael Savage <mikejsavage@gmail.com> Date: Sun Aug 20 23:43:56 +0300 Remove a junk assert Diffstat:
platform_network.h | | | 7 | ++----- |
diff --git a/platform_network.h b/platform_network.h @@ -10,11 +10,8 @@ enum TransportProtocol { NET_UDP, NET_TCP }; enum IPvX { NET_IPV4, NET_IPV6 }; enum NonblockingBool { NET_BLOCKING, NET_NONBLOCKING }; -struct IPv4 { u8 bytes[ 4 ]; }; -struct IPv6 { u8 bytes[ 16 ]; }; - -STATIC_ASSERT( sizeof( IPv4 ) == sizeof( struct in_addr ) ); -STATIC_ASSERT( sizeof( IPv6 ) == sizeof( struct in6_addr ) ); +struct IPv4 { u8 bytes[ sizeof( struct in_addr ) ]; }; +struct IPv6 { u8 bytes[ sizeof( struct in6_addr ) ]; }; struct NetAddress { IPvX type;