Skip to content

from_json uses "long", compiles as 32 bit int on Windows vs 64 bit int on Linux #368

@dinghram

Description

@dinghram
  • Compiler Used: Visual Studio 2015 Update 3
  • Operating System: Windows (any)
  • Architecture (ARM/x86/32bit/64bit/etc): 64bit

Expected Behavior

Invoke from_json with integer too big to fit in 32 bit integer succeeds, returning an int64.

Actual Behavior

Invoke from_json with integer too big to fit in 32 bit integer overflows the integer and returns an incorrect value.

Minimal Example to Reproduce Behavior

print( from_json( "100000000000" ) );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions