aboutsummaryrefslogtreecommitdiffstats
path: root/clox/src/object.h
diff options
context:
space:
mode:
Diffstat (limited to 'clox/src/object.h')
-rw-r--r--clox/src/object.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/clox/src/object.h b/clox/src/object.h
index 965b905..717031b 100644
--- a/clox/src/object.h
+++ b/clox/src/object.h
@@ -24,6 +24,7 @@ struct ObjString {
Obj obj;
int length;
char *chars;
+ uint32_t hash;
};
ObjString *takeString(char *chars, int length);