Re: [PATCH v5 0/2] MR3301: Improve trace output
13 Jul
2023
13 Jul
'23
6:07 p.m.
On Thu Jul 13 16:37:28 2023 +0000, Jeffrey Smith wrote:
Compilers can (and at least some do) treat an enumeration as a _signed_ integer. For the comparison to work as desired you'll want to cast `InformationClass` to an unsigned type. I think `size_t` would be appropriate. There's no need for a cast though. `ARRAY_SIZE` is already `size_t` (because it's implemented with `sizeof`), and a comparison between a signed integer and an unsigned integer with at least as many bits is always promoted to unsigned.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3301#note_38928
891
Age (days ago)
891
Last active (days ago)
0 comments
1 participants
participants (1)
-
Gabriel Ivăncescu