Commit 743a394
committed
(gosec) Apply G115 fixes to internal/decimal128 package
Address gosec G115 integer overflow warnings in decimal128:
- Use nolint for bitmask operations (14-bit values always fit in int)
- Use nolint for modulo result conversions (always fit in uint32)
- Document why conversions are safe1 parent 4891120 commit 743a394
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
| 64 | + | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
| |||
0 commit comments