File tree 3 files changed +13
-20
lines changed
3 files changed +13
-20
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,11 @@ impl TypeBaseBuilder {
52
52
let ast_type = if let Some ( concrete) = self . concrete {
53
53
concrete
54
54
} else if let Some ( size) = self . size {
55
- Type :: new ( TypeKind :: CInteger ( size, self . sign ) , self . source )
55
+ let sign = self
56
+ . sign
57
+ . or_else ( || ( !size. is_char ( ) ) . then_some ( IntegerSign :: Signed ) ) ;
58
+
59
+ Type :: new ( TypeKind :: CInteger ( size, sign) , self . source )
56
60
} else if let Some ( sign) = self . sign {
57
61
Type :: new ( TypeKind :: CInteger ( CInteger :: Int , Some ( sign) ) , self . source )
58
62
} else {
Original file line number Diff line number Diff line change 1
1
2
2
pragma => {
3
3
adept(c"3.0")
4
-
5
- #[windows] {
6
- link(c"libraylib.a")
7
- return
8
- }
9
-
10
- #[macos] {
11
- link(c"libraylib.a")
12
- linkFramework(c"OpenGL")
13
- linkFramework(c"Cocoa")
14
- linkFramework(c"IOKit")
15
- linkFramework(c"Foundation")
16
- linkFramework(c"CoreFoundation")
17
- return
18
- }
19
-
20
- panic("Unsupported platform")
4
+ link(c"libraylib.a")
5
+ linkFramework(c"OpenGL")
6
+ linkFramework(c"Cocoa")
7
+ linkFramework(c"IOKit")
8
+ linkFramework(c"Foundation")
9
+ linkFramework(c"CoreFoundation")
21
10
}
22
11
Original file line number Diff line number Diff line change 1
1
2
2
func main {
3
- screen_width : = 800
4
- screen_height : = 450
3
+ screen_width int = 800
4
+ screen_height int = 450
5
5
6
6
InitWindow(screen_width, screen_height, c"Example Window!")
7
7
You can’t perform that action at this time.
0 commit comments