aboutsummaryrefslogtreecommitdiff
path: root/src/library_sdl.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library_sdl.js')
-rw-r--r--src/library_sdl.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js
index b7e25e95..6c70f9f6 100644
--- a/src/library_sdl.js
+++ b/src/library_sdl.js
@@ -357,7 +357,7 @@ mergeInto(Library, {
},
SDL_GetError: function() {
- return Pointer_make(intArrayFromString("SDL is cool"), null);
+ return allocate(intArrayFromString("SDL is cool"), 'i8');
},
SDL_CreateRGBSurface: function(flags, width, height, depth, rmask, gmask, bmask, amask) {