aboutsummaryrefslogtreecommitdiff
path: root/core/net/common.odin
diff options
context:
space:
mode:
authorLaytan <laytanlaats@hotmail.com>2024-08-20 15:52:07 +0200
committerLaytan <laytanlaats@hotmail.com>2024-08-20 15:52:07 +0200
commit06fb500dfebf7415ea4515230a406cf7d8fcf03e (patch)
tree7ef5acbdbf74dc18518e5eda2897f3062fc3245e /core/net/common.odin
parent5ef58049dc3f392c251eb7f57966e75c1c0bddf3 (diff)
make sure net.Network_Error is of size 8
Diffstat (limited to 'core/net/common.odin')
-rw-r--r--core/net/common.odin4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/net/common.odin b/core/net/common.odin
index b9af9ce9b..ed255356e 100644
--- a/core/net/common.odin
+++ b/core/net/common.odin
@@ -72,6 +72,8 @@ Network_Error :: union #shared_nil {
DNS_Error,
}
+#assert(size_of(Network_Error) == 8)
+
General_Error :: enum u32 {
None = 0,
Unable_To_Enumerate_Network_Interfaces = 1,
@@ -80,7 +82,7 @@ General_Error :: enum u32 {
// `Platform_Error` is used to wrap errors returned by the different platforms that don't fit a common error.
Platform_Error :: enum u32 {}
-Parse_Endpoint_Error :: enum {
+Parse_Endpoint_Error :: enum u32 {
None = 0,
Bad_Port = 1,
Bad_Address,