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 » Community » U++ community news and announcements » Upp 604-dev1 released
Re: Upp 604-dev1 released [message #2384 is a reply to message #2379] Mon, 10 April 2006 11:08 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
hojtsy wrote on Mon, 10 April 2006 04:53

luzr wrote on Thu, 06 April 2006 17:50


Actually, it should be

inline void EndianSwap(word& v) { byte *x = (byte *)(&v); Swap(x[0], x[1]); }

Good that GCC catched that bug... (anyway, it is inactive for current U++)

The other 4 EndianSwap methods have the same error. I suppose they should also be corrected.



I hope they already are?

(BTW, another nice example of implementation defined code... Frankly, I would rather spend my energy here than with anticipating non-complement binary arithmetic, but resulting code for e.g. BMP header encoding/decoding would be much more ugly and complicated, even when we have to use packing pragmas....).

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Upp 603-dev4 released
Next Topic: Happy Easter everyone!
Goto Forum:
  


Current Time: Wed Jun 25 23:21:14 CEST 2025

Total time taken to generate the page: 0.03995 seconds