Commit 3c645fa
authored
build: fix char signed vs unsigned warning (#23675)
char defaults to signed on most x86 platforms, but unsigned on arm64.
When targeting linux arm64 this produced a warning because character was
always >= 0. This change circumvents this warning without changing
behavior even though it seems pretty unreasonable to have a character
less than 0 in this use case. Theoretically we could disable a warning
flag instead but that differs between clang and gcc.
Fixes #23569
Signed-off-by: Keith Smiley <[email protected]>
Signed-off-by: Keith Smiley <[email protected]>1 parent cfc2c3e commit 3c645fa
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
0 commit comments