Skip to content

Commit

Permalink
fix int8 generation
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWhiting committed Feb 1, 2025
1 parent d26b317 commit e5efaf0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Backend/C/FromCore.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,7 @@ cTypeCon c

cPrimCanBeBoxed :: String -> Bool
cPrimCanBeBoxed prim
= prim `elem` ["kk_char_t", "int64_t", "int16_t", "int32_t", "float", "double", "intptr_t", "kk_ssize_t"]
= prim `elem` ["kk_char_t", "int64_t", "int8_t", "int16_t", "int32_t", "float", "double", "intptr_t", "kk_ssize_t"]


---------------------------------------------------------------------------------
Expand Down
3 changes: 3 additions & 0 deletions test/cgen/box-int8.kk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fun main()
val v = vector-init(10) fn(i) i.int8
v[0].int.println
1 change: 1 addition & 0 deletions test/cgen/box-int8.kk.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0

0 comments on commit e5efaf0

Please sign in to comment.