diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-13 02:28:14 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-13 02:28:14 -0400 |
| commit | 25519d243485ab1906304adc99d400684b04ef5b (patch) | |
| tree | ef041872fd695d4b6d218791fbab3b90575e3532 /builtins | |
| parent | 80af2ea5476e6bc93fe3d7d2c297c021aa29b497 (diff) | |
Fixing up more stuff
Diffstat (limited to 'builtins')
| -rw-r--r-- | builtins/integers.c | 2 | ||||
| -rw-r--r-- | builtins/integers.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/builtins/integers.c b/builtins/integers.c index 08da553e..1faae4c2 100644 --- a/builtins/integers.c +++ b/builtins/integers.c @@ -70,7 +70,7 @@ public bool Int$equal_value(const Int_t x, const Int_t y) { return x.small == y.small || (__builtin_expect(((x.small & y.small) & 1) == 0, 0) && mpz_cmp(*x.big, *y.big) == 0); } -public bool Int$hash(const Int_t *x, const TypeInfo *type) { +public uint32_t Int$hash(const Int_t *x, const TypeInfo *type) { (void)type; uint32_t hash; if (__builtin_expect(x->small & 1, 1)) { diff --git a/builtins/integers.h b/builtins/integers.h index e41fd061..2fc2688e 100644 --- a/builtins/integers.h +++ b/builtins/integers.h @@ -46,6 +46,7 @@ DEFINE_INT_TYPE(int8_t, Int8); #define Int8$abs(...) I8(abs(__VA_ARGS__)) CORD Int$as_text(const Int_t *i, bool colorize, const TypeInfo *type); +uint32_t Int$hash(const Int_t *x, const TypeInfo *type); int32_t Int$compare(const Int_t *x, const Int_t *y, const TypeInfo *type); int32_t Int$compare_value(const Int_t x, const Int_t y); bool Int$equal(const Int_t *x, const Int_t *y, const TypeInfo *type); |
