Przeglądaj źródła

dynamically detect sizeof(bool)

Nicolas Cannasse 8 lat temu
rodzic
commit
0852eda624
1 zmienionych plików z 1 dodań i 1 usunięć
  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