Commit 5e07cf7
committed
fix: correct strtol0x signature
Building with older compilers, such as Xcode's gcc 4.2,
triggered "different width due to prototype" warnings.
This occurs because character literals (e.g., 'X') are
promoted to `int` when passed as function arguments, but
the `strtol0X` function signature expected a `char`.
This change corrects the function signature to accept an
`int`, which resolves the compiler warnings and improves
portability.1 parent b50c6c8 commit 5e07cf7
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
0 commit comments