diff options
author | Joel Bodenmann <joel@unormal.org> | 2014-02-02 12:59:36 +0100 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2014-02-02 12:59:36 +0100 |
commit | 6515373b2a63a24b77ff20a26e9b18468f29a6f9 (patch) | |
tree | 3defb6803ece269740bef971244ebee5a44173ed /src/gwin/console.c | |
parent | bf8ceb278fc285eff477294e1ae2cf539ada747b (diff) | |
download | uGFX-6515373b2a63a24b77ff20a26e9b18468f29a6f9.tar.gz uGFX-6515373b2a63a24b77ff20a26e9b18468f29a6f9.tar.bz2 uGFX-6515373b2a63a24b77ff20a26e9b18468f29a6f9.zip |
removing casts of gfxAlloc() return value as that is the whole idea behind having a void pointer
Diffstat (limited to 'src/gwin/console.c')
-rw-r--r-- | src/gwin/console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gwin/console.c b/src/gwin/console.c index ef374220..623404be 100644 --- a/src/gwin/console.c +++ b/src/gwin/console.c @@ -285,7 +285,7 @@ GHandle gwinGConsoleCreate(GDisplay *g, GConsoleObject *gc, const GWindowInit *p gcw->bufsize *= gh->height / gdispGetFontMetric(gh->font, fontHeight); // Allocate the buffer - if (!(gcw->buffer = (char*)gfxAlloc(gcw->bufsize))) + if (!(gcw->buffer = gfxAlloc(gcw->bufsize))) return FALSE; // All good! |