Skip to content

Conversation

@dinghram
Copy link
Contributor

@dinghram dinghram commented Oct 3, 2017

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"

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.
@dinghram dinghram changed the title Change long to int64_t to remove OS ambiguity from_json: change long to int64_t to remove OS ambiguity Oct 3, 2017
@codecov-io
Copy link

codecov-io commented Oct 3, 2017

Codecov Report

❗ No coverage uploaded for pull request base (develop@8307663). Click here to learn what that means.
The diff coverage is 87.5%.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop     #371   +/-   ##
==========================================
  Coverage           ?   67.83%           
==========================================
  Files              ?       59           
  Lines              ?    10221           
  Branches           ?     1284           
==========================================
  Hits               ?     6933           
  Misses             ?     2410           
  Partials           ?      878
Impacted Files Coverage Δ
include/chaiscript/utility/json.hpp 77.89% <87.5%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8307663...680f9b9. Read the comment docs.

@lefticus lefticus merged commit bd6c83f into ChaiScript:develop Nov 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants