Skip to content

Commit

Permalink
Add explicit cast to bool, to avoid VS10 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lelit committed Aug 16, 2017
1 parent d48c890 commit 7a39904
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rapidjson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2120,8 +2120,9 @@ dumps(PyObject* self, PyObject* args, PyObject* kwargs)
}
}

return do_encode(value, skipKeys, defaultFn, sortKeys, maxRecursionDepth, ensureAscii,
prettyPrint, indentCharCount, numberMode, datetimeMode, uuidMode);
return do_encode(value, (bool) skipKeys, defaultFn, (bool) sortKeys, maxRecursionDepth,
(bool) ensureAscii, (bool) prettyPrint, indentCharCount, numberMode,
datetimeMode, uuidMode);
}


Expand Down

0 comments on commit 7a39904

Please sign in to comment.