Skip to content

Commit

Permalink
fix order for type checking
Browse files Browse the repository at this point in the history
Co-authored-by: cjserio <[email protected]>
  • Loading branch information
prince-chrismc and cjserio committed Dec 21, 2023
1 parent 675b97b commit af31ee6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/jwt-cpp/traits/open-source-parsers-jsoncpp/traits.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ namespace jwt {
return type::array;
else if (val.isString())
return type::string;
else if (val.isInt()) // Order is important https://github.com/Thalhammer/jwt-cpp/pull/320#issuecomment-1865322511
return type::integer;
else if (val.isNumeric())
return type::number;
else if (val.isInt())
return type::integer;
else if (val.isBool())
return type::boolean;
else if (val.isObject())
Expand Down

0 comments on commit af31ee6

Please sign in to comment.