X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fvars.c;h=21147fec5e873e3bebbe94e0797afd39a1346afb;hb=35ab27e7aab71c94aa6be12da15603c7fd87fca8;hp=03b8ec256f11805515bda14b4ffc753d1405c3e7;hpb=79cc569a97e444389350ea3f5b1017374fe16bec;p=sbcl.git diff --git a/src/runtime/vars.c b/src/runtime/vars.c index 03b8ec2..21147fe 100644 --- a/src/runtime/vars.c +++ b/src/runtime/vars.c @@ -29,7 +29,7 @@ struct var { lispobj obj; lispobj (*update_fn)(struct var *var); char *name; - long clock; + sword_t clock; boolean map_back, permanent; struct var *nnext; /* Next in name list */ @@ -38,7 +38,7 @@ struct var { static int hash_name(char *name) { - unsigned long value = 0; + uword_t value = 0; while (*name != '\0') { value = (value << 1) ^ *(unsigned char *)(name++); @@ -50,7 +50,7 @@ static int hash_name(char *name) static int hash_obj(lispobj obj) { - return (unsigned long)obj % OBJ_BUCKETS; + return (uword_t)obj % OBJ_BUCKETS; } void flush_vars() @@ -176,12 +176,12 @@ lispobj var_value(struct var *var) return var->obj; } -long var_clock(struct var *var) +sword_t var_clock(struct var *var) { return var->clock; } -void var_setclock(struct var *var, long val) +void var_setclock(struct var *var, sword_t val) { var->clock = val; }