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 » CParser: Suggest check for overflow in ReadInt, ReadDouble...
Re: CParser: Suggest check for overflow in ReadInt, ReadDouble... [message #41027 is a reply to message #41026] Tue, 22 October 2013 07:41 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
hans wrote on Mon, 21 October 2013 16:57

Thanks, looks good.

For double no check is needed indeed, it already returns #INF on overflow.

Hans


Well, I have not checked in Win32, but in Linux it does not seem to work that way. In any case, to make things consistent, it should throw the error too. After some investigation, I plan to reset FP exceptions state at the start of method and check them at the end. The only problem seems to be that this checking is different for Win32 vs Posix....
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: append in logging not working
Next Topic: how to just get var from parent Layout class?
Goto Forum:
  


Current Time: Sat May 25 03:31:13 CEST 2024

Total time taken to generate the page: 0.00497 seconds