Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Jsonize int64 surprise
Re: Jsonize int64 surprise [message #38869 is a reply to message #38868] Thu, 24 January 2013 20:43 Go to previous messageGo to previous message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

mirek wrote on Thu, 24 January 2013 22:30

that actually is exactly what I propose (I just got 56 wrong, it is indeed 53).

Excellent. So here's change I propose:
//JSON.cpp @ 238
		{
			static const int64 JSON_INT_MIN = -9007199254740992LL;
			static const int64 JSON_INT_MAX =  9007199254740991LL;

			if(var >= JSON_INT_MIN && var <= JSON_INT_MAX)
				io.Set(var);
			else
				io.Set(AsString(var));
		}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Is FrameLess() working under Linux ?
Next Topic: Request: completion 64 bit support in Draw and Stream
Goto Forum:
  


Current Time: Fri Apr 26 02:30:16 CEST 2024

Total time taken to generate the page: 0.04643 seconds