aboutsummaryrefslogtreecommitdiff
path: root/sdl2/keyboard.ha
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sdl2/keyboard.ha2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdl2/keyboard.ha b/sdl2/keyboard.ha
index b9759dd..02cedae 100644
--- a/sdl2/keyboard.ha
+++ b/sdl2/keyboard.ha
@@ -635,7 +635,7 @@ export type SDL_Keysym = struct {
@symbol("SDL_GetKeyFromName") fn _SDL_GetKeyFromName(name: *const c::char) SDL_Keycode;
export fn SDL_GetKeyFromName(name: str) (SDL_Keycode | error) = {
- const name = c::fromstr(name);
+ const name = c::fromstr(name)!;
defer free(name);
const sym = _SDL_GetKeyFromName(name);
if (sym == SDL_Keycode::UNKNOWN) {