Browse Source

Explicit cast to make C++ compilers happy

shared-context
Christian Forfang 11 years ago
parent
commit
7b567dacc5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/fontstash.h

+ 1
- 1
src/fontstash.h View File

@@ -683,7 +683,7 @@ struct FONScontext* fonsCreateInternal(struct FONSparams* params)
stash->params = *params;

// Allocate scratch buffer.
stash->scratch = malloc(FONS_SCRATCH_BUF_SIZE);
stash->scratch = (unsigned char*)malloc(FONS_SCRATCH_BUF_SIZE);
if (stash->scratch == NULL) goto error;

// Initialize implementation library


Loading…
Cancel
Save