Commit b790a33
committed
Fix undefined behavior in RV_MARCHID definition
The RV_MARCHID macro is defined using a left shift operation without
explicitly specifying the type of the constant. This can lead to
undefined behavior, specifically a shift too many bits issue.
Modify the RV_MARCHID definition to use the ULL suffix for the
constant, ensuring it is treated as an unsigned long long. This
eliminates the undefined behavior.1 parent ed4fe8f commit b790a33
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| |||
0 commit comments