Browse Source

dynamically detect sizeof(bool)

Nicolas Cannasse 8 years ago
parent
commit
0852eda624
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/std/types.c

+ 1 - 1
src/std/types.c

@@ -48,7 +48,7 @@ static int T_SIZES[] = {
 	8, // I64
 	4, // F32
 	8, // F64
-	1, // BOOL
+	sizeof(bool), // BOOL
 	HL_WSIZE, // BYTES
 	HL_WSIZE, // DYN
 	HL_WSIZE, // FUN