mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Ensure stack objects are properly marked
This commit is contained in:
parent
d1acb301c1
commit
ec6140b3a4
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue