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 » Developing U++ » U++ Developers corner » Details when compiling in 64 bits
Details when compiling in 64 bits [message #39019] Thu, 07 February 2013 10:09 Go to next message
koldo is currently offline  koldo
Messages: 3354
Registered: August 2008
Senior Veteran
Hello all

After compiling U++ in 64 bits (using mainly MSC10) there are some sources of warnings because of using of int. In this warnings compiler complains about that int is not enough to fit the data.

- strlen() and size_t
This function returns size_t, that is unsigned and bigger than int.

- Pointer arithmetic
It is bigger than int, so it is proposed to use ptrdiff_t to add or subtract pointers. It is also signed and enough big.


Best regards
IƱaki
Re: Details when compiling in 64 bits [message #39025 is a reply to message #39019] Thu, 07 February 2013 17:21 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
koldo wrote on Thu, 07 February 2013 04:09

Hello all

After compiling U++ in 64 bits (using mainly MSC10) there are some sources of warnings because of using of int. In this warnings compiler complains about that int is not enough to fit the data.

- strlen() and size_t
This function returns size_t, that is unsigned and bigger than int.

- Pointer arithmetic
It is bigger than int, so it is proposed to use ptrdiff_t to add or subtract pointers. It is also signed and enough big.


OK, noticed RM task, will do soon.

Mirek
Previous Topic: New containers - naming
Next Topic: why no virtual destructor for RegExp?
Goto Forum:
  


Current Time: Thu Mar 28 13:20:27 CET 2024

Total time taken to generate the page: 0.01288 seconds