U++ framework
Do not panic. Ask here before giving up.

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: 14291
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: Wed Sep 16 01:57:18 GMT+2 2026

Total time taken to generate the page: 0.00667 seconds