aboutsummaryrefslogtreecommitdiff
path: root/sdl2/errors.ha
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2023-09-22 14:27:12 +0200
committerDrew DeVault <sir@cmpwn.com>2023-09-22 14:27:12 +0200
commit260b9effb19fe85604f05ccf0be18795fd2bc782 (patch)
tree283fc37827b7f0c4eacd8672383ebe0c89c8cdc4 /sdl2/errors.ha
parentAdd SDL_CreateTextureFromSurface() (diff)
downloadhare-chip8-260b9effb19fe85604f05ccf0be18795fd2bc782.tar.gz
all: fix build errors
Diffstat (limited to '')
-rw-r--r--sdl2/errors.ha4
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;