diff options
| author | 2022-10-08 21:02:30 +0200 | |
|---|---|---|
| committer | 2022-10-08 21:02:30 +0200 | |
| commit | f6b93fa139b4bbaa89a5e3e725f498275ca8d296 (patch) | |
| tree | 6be50c3f75fc38b4559f940c04ca378abf9e73d4 /pez.h | |
| parent | e2283f6c7f5abc60dc7ba7ea59deee94da714da7 (diff) | |
basic gc and closures sketon
Diffstat (limited to 'pez.h')
| -rw-r--r-- | pez.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -14,6 +14,7 @@ enum { PEZ_TNumber, PEZ_TBool, PEZ_TString, + PEZ_TFnProto, PEZ_TFn, PEZ_TTuple, PEZ_TRecord, @@ -96,10 +97,11 @@ pez_fixmul(PezNumber a, PezNumber b) static inline PezNumber pez_fixdiv(PezNumber a, PezNumber b) { + int64_t tmp; if (b == 0) { return a >= 0 ? INT32_MAX : INT32_MIN; } - int64_t tmp = (uint64_t)a << 12; + tmp = (uint64_t)a << 12; /* if ((tmp < 0) == (b < 0)) { tmp += b >> 1; |