alignas (16) evaltype type;
pool_ptr rest;
uint32_t _pad;
- uint32_t val;
+ int32_t val;
} fix32_object;
typedef struct
{
alignas (16) evaltype type;
pool_ptr rest;
- uint64_t val;
+ int64_t val;
} fix64_object;
typedef struct
Initialization helpers.
*/
+static inline fix32_object
+new_fix32 (int32_t n)
+{
+ return (fix32_object)
+ {
+ .type = EVALTYPE_FIX32,.rest = 0,.val = n};
+}
+
static inline fix64_object
-new_fix64 (uint64_t n)
+new_fix64 (int64_t n)
{
return (fix64_object)
{
- .type = EVALTYPE_FIX64,.rest = 0,.val = n,};
+ .type = EVALTYPE_FIX64,.rest = 0,.val = n};
}
static inline list_object