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

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: 3458
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: 14290
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: Tue Apr 28 14:09:39 GMT+2 2026

Total time taken to generate the page: 0.00569 seconds