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 » size_t or int in 64 bits
size_t or int in 64 bits [message #37972] Mon, 26 November 2012 13:47 Go to next message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello Mirek

When compiling in 64 bits it appears warnings in TrimLeft/TrimRight functions because of assigning size_t to int

force_inline String TrimLeft(const char *prefix, const String& s)    { return TrimLeft(prefix, strlen(prefix), s); }


I suppose strlen() has to be converted to int because String indexing uses int instead of size_t or std::ptrdiff_t.


Best regards
IƱaki
Re: size_t or int in 64 bits [message #37975 is a reply to message #37972] Mon, 26 November 2012 13:58 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Indeed, thanks.

Mirek
Previous Topic: To add serialize/xmlize/jsonize functions to EditField and others
Next Topic: Using DLI files on Windows
Goto Forum:
  


Current Time: Fri Apr 19 00:34:10 CEST 2024

Total time taken to generate the page: 0.04185 seconds