diff options
| author | Drew DeVault <sir@cmpwn.com> | 2023-09-22 14:27:12 +0200 |
|---|---|---|
| committer | Drew DeVault <sir@cmpwn.com> | 2023-09-22 14:27:12 +0200 |
| commit | 260b9effb19fe85604f05ccf0be18795fd2bc782 (patch) | |
| tree | 283fc37827b7f0c4eacd8672383ebe0c89c8cdc4 /sdl2/errors.ha | |
| parent | Add SDL_CreateTextureFromSurface() (diff) | |
| download | hare-chip8-260b9effb19fe85604f05ccf0be18795fd2bc782.tar.gz | |
all: fix build errors
Diffstat (limited to 'sdl2/errors.ha')
| -rw-r--r-- | sdl2/errors.ha | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sdl2/errors.ha b/sdl2/errors.ha index b386ebe..a848667 100644 --- a/sdl2/errors.ha +++ b/sdl2/errors.ha @@ -21,9 +21,9 @@ export fn wrapint(ret: int) (int | error) = { return ret; }; -export fn wrapptr(ret: nullable *void) (*void | error) = { +export fn wrapptr(ret: nullable *opaque) (*opaque | error) = { match (ret) { - case let v: *void => + case let v: *opaque => return v; case null => return c::tostr(SDL_GetError()): error; |
