Ensure stack objects are properly marked

This commit is contained in:
Justin Ethier 2015-11-20 02:50:46 -05:00
parent d1acb301c1
commit ec6140b3a4

View file

@ -939,10 +939,12 @@ common_type Cyc_string2number(void *data, object str){
n = atof(((string_type *) str)->str);
if (ceilf(n) == n) {
result.integer_t.hdr.mark = gc_color_red;
result.integer_t.tag = integer_tag;
result.integer_t.value = (int)n;
}
else {
result.double_t.hdr.mark = gc_color_red;
result.double_t.tag = double_tag;
result.double_t.value = n;
}