summaryrefslogtreecommitdiff
path: root/pez.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-10-08 21:02:30 +0200
committerlemon <lsof@mailbox.org>2022-10-08 21:02:30 +0200
commitf6b93fa139b4bbaa89a5e3e725f498275ca8d296 (patch)
tree6be50c3f75fc38b4559f940c04ca378abf9e73d4 /pez.h
parente2283f6c7f5abc60dc7ba7ea59deee94da714da7 (diff)
basic gc and closures sketon
Diffstat (limited to 'pez.h')
-rw-r--r--pez.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/pez.h b/pez.h
index 063905c..08fce17 100644
--- a/pez.h
+++ b/pez.h
@@ -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;