mirror of
https://github.com/vlang/v.git
synced 2025-09-16 02:49:31 -04:00
builtin: fix sizeof(C.BOOL) (windows specific) (#19589)
This commit is contained in:
parent
bbb4a802e6
commit
dc6e31787e
@ -12,3 +12,9 @@ fn test_g_main_argv() {
|
||||
}
|
||||
assert first_arg.contains('builtin_test')
|
||||
}
|
||||
|
||||
[if windows]
|
||||
fn test_bool_size() {
|
||||
println(@LOCATION)
|
||||
assert sizeof(C.BOOL) == 4
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ module builtin
|
||||
// g_original_codepage - used to restore the original windows console code page when exiting
|
||||
__global g_original_codepage = u32(0)
|
||||
|
||||
pub type C.BOOL = bool
|
||||
pub type C.BOOL = int
|
||||
|
||||
pub type C.HINSTANCE = voidptr
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user