Skip to content

Json::Value constructor: Accept any arithmetic type. #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Prev Previous commit
Next Next commit
Make 64-bit int work with 'long int' and 'int64_t' for 64 bit builds …
…(Issue #64)
  • Loading branch information
orodbhen authored and cdunn2001 committed Nov 9, 2014
commit 1787b6d122ee903a64be7f0f7eab902f1875b091
5 changes: 3 additions & 2 deletions include/json/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
#define JSONCPP_DEPRECATED(message)
#endif // if !defined(JSONCPP_DEPRECATED)

#include <stdint.h>
namespace Json {
typedef int Int;
typedef unsigned int UInt;
Expand All @@ -100,8 +101,8 @@ typedef unsigned int LargestUInt;
typedef __int64 Int64;
typedef unsigned __int64 UInt64;
#else // if defined(_MSC_VER) // Other platforms, use long long
typedef long long int Int64;
typedef unsigned long long int UInt64;
typedef int64_t Int64;
typedef uint64_t UInt64;
#endif // if defined(_MSC_VER)
typedef Int64 LargestInt;
typedef UInt64 LargestUInt;
Expand Down