from_json: change long to int64_t to remove OS ambiguity#371
Merged
lefticus merged 3 commits intoChaiScript:developfrom Nov 21, 2017
Merged
from_json: change long to int64_t to remove OS ambiguity#371lefticus merged 3 commits intoChaiScript:developfrom
lefticus merged 3 commits intoChaiScript:developfrom
Conversation
Linux compilers interpret "long" as 64 bit, Visual Studio on Windows interprets "long" as 32 bit. In order to remove ambiguity, from_json should use int64_t rather than long when parsing integers.
Codecov Report
@@ Coverage Diff @@
## develop #371 +/- ##
==========================================
Coverage ? 67.83%
==========================================
Files ? 59
Lines ? 10221
Branches ? 1284
==========================================
Hits ? 6933
Misses ? 2410
Partials ? 878
Continue to review full report at Codecov.
|
lefticus
approved these changes
Nov 21, 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linux compilers interpret "long" as 64 bit, Visual Studio on Windows interprets "long" as 32 bit. In order to remove ambiguity, from_json should use int64_t rather than long when parsing integers.
Issue this pull request references: #368
Changes proposed in this pull request
json.hpp: switch from "long" to "int64_t"