diff options
Diffstat (limited to 'builtins')
| -rw-r--r-- | builtins/integers.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/builtins/integers.h b/builtins/integers.h index 4f3ebe51..4a6416c1 100644 --- a/builtins/integers.h +++ b/builtins/integers.h @@ -23,9 +23,9 @@ #define I16(x) ((int16_t)x) #define I8(x) ((int8_t)x) -#define DEFINE_INT_TYPE(c_type, type_name, bits) \ +#define DEFINE_INT_TYPE(c_type, type_name) \ typedef struct { \ - c_type i:bits; \ + c_type i; \ bool is_null:1; \ } Optional ## type_name ## _t; \ Text_t type_name ## $as_text(const c_type *i, bool colorize, const TypeInfo *type); \ @@ -63,10 +63,10 @@ return type_name ## $modulo(D-1, d) + 1; \ } -DEFINE_INT_TYPE(int64_t, Int64, 64) -DEFINE_INT_TYPE(int32_t, Int32, 32) -DEFINE_INT_TYPE(int16_t, Int16, 16) -DEFINE_INT_TYPE(int8_t, Int8, 8) +DEFINE_INT_TYPE(int64_t, Int64) +DEFINE_INT_TYPE(int32_t, Int32) +DEFINE_INT_TYPE(int16_t, Int16) +DEFINE_INT_TYPE(int8_t, Int8) #undef DEFINE_INT_TYPE #define NULL_INT64 ((OptionalInt64_t){.is_null=true}) |
