From 70859e0a6a04deb5021d5e8356f31550c19d5da7 Mon Sep 17 00:00:00 2001 From: Filleo Date: Sun, 2 Jun 2024 23:27:22 +0200 Subject: [PATCH] added default values to enums --- src/set/types.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/set/types.h b/src/set/types.h index d425066..08e8418 100644 --- a/src/set/types.h +++ b/src/set/types.h @@ -11,9 +11,9 @@ */ typedef enum PrimitiveType_t { // 4 byte signed integer in two's complement - Int, + Int =0, // 4 byte IEEE-754 single precision - Float + Float =1 } PrimitiveType; /** @@ -21,10 +21,10 @@ typedef enum PrimitiveType_t { * */ typedef enum Sign_t { - // type has a sign bit - Signed, // type has no sign bit - Unsigned + Unsigned = 0, + // type has a sign bit + Signed = 1 } Sign; /** @@ -387,7 +387,7 @@ typedef struct Operation_t { union OperationImplementation { ArithmeticOperator arithmetic; RelationalOperator relational; - BooleanOperator boolean; + BooleanOperator boolean; LogicalOperator logical; BitwiseOperator bitwise; } impl;