aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebastian@sebsite.pw>2022-04-26 17:58:54 -0400
committerDrew DeVault <sir@cmpwn.com>2022-04-28 16:13:48 +0200
commit02e827d8499290201a86726b658f8571327b5f18 (patch)
tree8a41e63f13c30ee632b7ffdbf227bad73e823503
parentMakefile: add clean target (diff)
downloadhare-chip8-02e827d8499290201a86726b658f8571327b5f18.tar.gz
mixer: io::close can error
Signed-off-by: Sebastian <sebastian@sebsite.pw>
-rw-r--r--sdl2/mixer/samples.ha2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdl2/mixer/samples.ha b/sdl2/mixer/samples.ha
index 2dce2ef..0a45151 100644
--- a/sdl2/mixer/samples.ha
+++ b/sdl2/mixer/samples.ha
@@ -23,7 +23,7 @@ export fn Mix_LoadWAV_RW(src: io::handle) (*Mix_Chunk | sdl2::error) = {
// Loads a sample from a file path.
export fn load_file(src: str) (*Mix_Chunk | fs::error | sdl2::error) = {
const file = os::open(src)?;
- defer io::close(file);
+ defer io::close(file)!;
return Mix_LoadWAV_RW(file);
};