Skip to content

Commit

Permalink
Added cast to remove error (Instead of casting to a smaller data type)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheng-alvin committed Nov 28, 2023
1 parent 8d7a7df commit 7327575
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libjas/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jasErrorCode_t jasInitNew(jasMode_t mode, jasInstance_t *instance, uint8_t *buff
instance->mode = mode;
instance->buffer = buffer;
instance->bufferLen = 0;
instance->format = format == NULL ? JAS_OUT_FORMAT_RAW : format;
instance->format = (void*) format == NULL ? JAS_OUT_FORMAT_RAW : format;
instance->includes = includes;
instance->filename = filename;
instance->isFile = isFile;

return JAS_NO_ERROR;
}
}

0 comments on commit 7327575

Please sign in to comment.