Author Topic: Possible issue with propgrid?  (Read 4283 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Possible issue with propgrid?
« on: January 13, 2006, 07:27:20 pm »
I don't know when this started bbut doing a C::B rebuild from scratch showed this warning as of today:
Code
sdk\propgrid\src\propgrid\propgrid.cpp:6804: warning: comparison is always false due to limited range of data type
I wonder whether this is an issue that should be taken care of. Looking at the appropriate code leads me to think it might be an unicode issue, but I am not sure. I am using C::B revision 1749 on Windows with wxWidgets 2.6.2 (unicode).
Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: Possible issue with propgrid?
« Reply #1 on: January 13, 2006, 07:31:11 pm »
The warning is already present for some time.
In the comparison a cast to int should be done. In unicode wxChar is apparently unsigned, and int ansi it is not, so in ansi this test is needed.

Someone needs to add that cast, please (devs ???)