diff --git a/src/c/translation/types/mod.rs b/src/c/translation/types/mod.rs index 8cd10a26..143f2874 100644 --- a/src/c/translation/types/mod.rs +++ b/src/c/translation/types/mod.rs @@ -52,7 +52,11 @@ impl TypeBaseBuilder { let ast_type = if let Some(concrete) = self.concrete { concrete } else if let Some(size) = self.size { - Type::new(TypeKind::CInteger(size, self.sign), self.source) + let sign = self + .sign + .or_else(|| (!size.is_char()).then_some(IntegerSign::Signed)); + + Type::new(TypeKind::CInteger(size, sign), self.source) } else if let Some(sign) = self.sign { Type::new(TypeKind::CInteger(CInteger::Int, Some(sign)), self.source) } else { diff --git a/tests/raylib/_.adept b/tests/raylib/_.adept index 5dc00bdb..247d6aa6 100644 --- a/tests/raylib/_.adept +++ b/tests/raylib/_.adept @@ -1,22 +1,11 @@ pragma => { adept(c"3.0") - - #[windows] { - link(c"libraylib.a") - return - } - - #[macos] { - link(c"libraylib.a") - linkFramework(c"OpenGL") - linkFramework(c"Cocoa") - linkFramework(c"IOKit") - linkFramework(c"Foundation") - linkFramework(c"CoreFoundation") - return - } - - panic("Unsupported platform") + link(c"libraylib.a") + linkFramework(c"OpenGL") + linkFramework(c"Cocoa") + linkFramework(c"IOKit") + linkFramework(c"Foundation") + linkFramework(c"CoreFoundation") } diff --git a/tests/raylib/main.adept b/tests/raylib/main.adept index 74758ec1..504c8213 100644 --- a/tests/raylib/main.adept +++ b/tests/raylib/main.adept @@ -1,7 +1,7 @@ func main { - screen_width := 800 - screen_height := 450 + screen_width int = 800 + screen_height int = 450 InitWindow(screen_width, screen_height, c"Example Window!")