1. Serge Zaitsev
  2. jsmn
Issue #6 resolved

Replace funciton returning int instead of jsmnerr_t

Anonymous created an issue

When trying to compile the source code with the version 4.6.3 of GCC as C++ code, the compiler complains about conversion between int and jsmnerr_t.

Indeed, for several _parse functions, the return type is set to int whereas they always return one of the values of the jsmnerr_t type.

Replacing their return type by jsmnerr_t solves the issue.

Btw, nice tool. Thanks for sharing :-)

Comments (1)

  1. Log in to comment