Skip to content

Commit df78f14

Browse files
NaN boxing is back
1 parent de2f965 commit df78f14

File tree

3 files changed

+208
-178
lines changed

3 files changed

+208
-178
lines changed

src/cognac.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ void to_exe(module_t* mod)
827827

828828
char* debug_args[] = {
829829
STR(CC), c_source_path, "-o", exe_path,
830-
"-Og", "-ggdb3", "-g", "-rdynamic", "-DDEBUG",
830+
"-O0", "-ggdb3", "-g", "-rdynamic", "-DDEBUG",
831831
"-lm", "-Wall", "-Wno-unused", "-Wno-unused-result",
832832
gc_test ? "-DGCTEST" : NULL, NULL
833833
} ;
@@ -991,7 +991,7 @@ void to_c(module_t* mod)
991991
{
992992
if (w->word->used_early)
993993
{
994-
fprintf(c_source, "\tBOX %s = ___box(NIL_OBJ);\n",
994+
fprintf(c_source, "\tBOX %s = ___box(NIL);\n",
995995
c_word_name(w->word));
996996
}
997997
/*
@@ -1243,7 +1243,7 @@ void to_c(module_t* mod)
12431243
if (op->op->func->captures)
12441244
{
12451245
for (word_list_t* w = op->op->func->captures ; w ; w = w->next)
1246-
fprintf(c_source, "+ sizeof(%s)", c_val_type(w->word->val->type));
1246+
fprintf(c_source, " + sizeof(%s)", c_val_type(w->word->val->type));
12471247
}
12481248
fprintf(c_source, ");\n");
12491249
if (op->op->func->captures)

0 commit comments

Comments
 (0)