Skip to content

Commit

Permalink
Added new line for formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cheng-alvin committed Nov 30, 2023
1 parent 4ead37b commit 29baa84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libjas/error.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

char *jasErrorno(jasErrorCode_t c) {
char *codes[] = {"JAS_NO_ERROR", "JAS_ERROR_UNDEFINED_POINTER"}; // TODO Add more error codes

if (c > sizeof(c) * sizeof(char *))
return "JAS_NO_ERROR_CODE";

return codes[c];
}

0 comments on commit 29baa84

Please sign in to comment.