projects
/
fur
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make __field__ take a symbol instead of a string
[fur]
/
templates
/
program2.c
diff --git
a/templates/program2.c
b/templates/program2.c
index
679bbfb
..
d22d595
100644
(file)
--- a/
templates/program2.c
+++ b/
templates/program2.c
@@
-131,7
+131,7
@@
void callBuiltinField(Thread* thread, size_t argumentCount) {
assert(!Stack_isEmpty(&(thread->stack)));
Object key = Stack_pop(&(thread->stack));
assert(!Stack_isEmpty(&(thread->stack)));
Object key = Stack_pop(&(thread->stack));
- assert(key.type == S
TRING); // TODO Make this a symbol
+ assert(key.type == S
YMBOL);
assert(!Stack_isEmpty(&(thread->stack)));
Object structure = Stack_pop(&(thread->stack));
assert(!Stack_isEmpty(&(thread->stack)));
Object structure = Stack_pop(&(thread->stack));