Ticket #1140 (closed defect: fixed)
Signed/unsigned comparison warning on FreeBSD
| Reported by: | historic_bruno | Owned by: | philip |
|---|---|---|---|
| Priority: | Should Have | Milestone: | Alpha 9 |
| Component: | Core engine | Keywords: | freebsd |
| Cc: |
Description (last modified by historic_bruno) (diff)
This warning occurs almost constantly when building on FreeBSD:
../../../source/lib/os_path.h: In function 'std::string OsString(const OsPath&)': ../../../source/lib/os_path.h:48: warning: comparison between signed and unsigned integer expressions
I checked the system headers and UCHAR_MAX is indeed defined as 0xffU, but it seems wchar_t is actually an int on FreeBSD.
Change History
comment:2 Changed 16 months ago by historic_bruno
- Description modified (diff)
I didn't pay attention to what the code is actually doing, it's checking if the wchar_t value could fit in an unsigned char.
Note: See
TracTickets for help on using
tickets.
