Returning jsmnerr_t: change to int

Issue #42 new
Eugene Ryabtsev
created an issue

With #ifdef __cplusplus in the header people might just use your parser in C++ then feed it a long json and be surprised by sizeof(jsmnerr_t) being 1 (thus number of tokens being returned incorrectly). You probably should return int (your count is int). Also, this will get rid of those warnings when an int count is being returned as jsmnerr_t.

Comments (0)

  1. Log in to comment