Explorar o código

dynamically detect sizeof(bool)

Nicolas Cannasse %!s(int64=8) %!d(string=hai) anos
pai
achega
0852eda624
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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