From b051a57522962c219bceb6e7401a97ca91b8927e Mon Sep 17 00:00:00 2001 From: Brice Videau Date: Wed, 5 Feb 2025 11:36:29 -0600 Subject: [PATCH] Use correct platform specific _Bool type. --- utils/yaml_ast.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/yaml_ast.rb b/utils/yaml_ast.rb index 8e9d8236..01ef3511 100644 --- a/utils/yaml_ast.rb +++ b/utils/yaml_ast.rb @@ -442,7 +442,7 @@ def find_types_map(types, cast_type, map) "size_t" => [false, 8, "ffi_type_pointer"], "intptr_t" => [true, 8, "ffi_type_pointer"], "uintptr_t" => [false, 8, "ffi_type_pointer"], - "_Bool" => [false, 4, "ffi_type_uint32"], + "_Bool" => [false, 1, "ffi_type_uint8"], } INT_SIGN_MAP = INT_TYPE_MAP.map { |k, v| [k, v[0]] }.to_h