forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf3f3aae
committed
Improve conversions from uint64 to Perl types.
Perl's integers are pointer-sized, so can hold more than INT_MAX on LP64platforms, and come in both signed (IV) and unsigned (UV). Floatingpoint values (NV) may also be larger than double.Since Perl 5.19.4 array indices are SSize_t instead of I32, so allow upto SSize_t_max on those versions. The limit is not imposed just byav_extend's argument type, but all the array handling code, so removethe speculative comment.Dagfinn Ilmari Mannsåker1 parent6be84ee commitf3f3aae
2 files changed
+12
-9
lines changedLines changed: 5 additions & 9 deletions
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 |
| |
|
Lines changed: 7 additions & 0 deletions
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
Comments
(0)