Commit 5f4b20b
Improve conversions from uint64 to Perl types.
Perl's integers are pointer-sized, so can hold more than INT_MAX on LP64
platforms, and come in both signed (IV) and unsigned (UV). Floating
point values (NV) may also be larger than double.
Since Perl 5.19.4 array indices are SSize_t instead of I32, so allow up
to SSize_t_max on those versions. The limit is not imposed just by
av_extend's argument type, but all the array handling code, so remove
the speculative comment.
Dagfinn Ilmari Mannsåker1 parent 4f3873d commit 5f4b20b
2 files changed
+12
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3104 | 3104 | | |
3105 | 3105 | | |
3106 | 3106 | | |
3107 | | - | |
3108 | | - | |
3109 | | - | |
| 3107 | + | |
| 3108 | + | |
| 3109 | + | |
3110 | 3110 | | |
3111 | 3111 | | |
3112 | 3112 | | |
3113 | 3113 | | |
3114 | 3114 | | |
3115 | 3115 | | |
3116 | 3116 | | |
3117 | | - | |
3118 | | - | |
3119 | | - | |
3120 | | - | |
3121 | | - | |
3122 | | - | |
| 3117 | + | |
| 3118 | + | |
3123 | 3119 | | |
3124 | 3120 | | |
3125 | 3121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
91 | 98 | | |
92 | 99 | | |
93 | 100 | | |
| |||
0 commit comments