forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6277435
committed
Silence some Coverity warnings and improve code consistency.
Coverity complained about possible overflow in expressions likeintresult = tm->tm_sec * 1000000 + fsec;on the grounds that the multiplication would happen in 32-bitarithmetic before widening to the int64 result. I think theseare all false positives because of the limited possible range oftm_sec; but nonetheless it seems silly to spell it like that whennearby lines have the identical computation written with a 64-bitconstant.... or more accurately, with an LL constant, which is not projectstyle. Make all of these use INT64CONST(), as we do elsewhere.This is all new code froma2da77c, so no need for back-patch.1 parentd7cff12 commit6277435
2 files changed
+20
-20
lines changedLines changed: 7 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2158 | 2158 |
| |
2159 | 2159 |
| |
2160 | 2160 |
| |
2161 |
| - | |
| 2161 | + | |
2162 | 2162 |
| |
2163 | 2163 |
| |
2164 | 2164 |
| |
| |||
2167 | 2167 |
| |
2168 | 2168 |
| |
2169 | 2169 |
| |
2170 |
| - | |
| 2170 | + | |
2171 | 2171 |
| |
2172 | 2172 |
| |
2173 | 2173 |
| |
| |||
2178 | 2178 |
| |
2179 | 2179 |
| |
2180 | 2180 |
| |
2181 |
| - | |
| 2181 | + | |
2182 | 2182 |
| |
2183 | 2183 |
| |
2184 | 2184 |
| |
| |||
2940 | 2940 |
| |
2941 | 2941 |
| |
2942 | 2942 |
| |
2943 |
| - | |
| 2943 | + | |
2944 | 2944 |
| |
2945 | 2945 |
| |
2946 | 2946 |
| |
| |||
2949 | 2949 |
| |
2950 | 2950 |
| |
2951 | 2951 |
| |
2952 |
| - | |
| 2952 | + | |
2953 | 2953 |
| |
2954 | 2954 |
| |
2955 | 2955 |
| |
| |||
2960 | 2960 |
| |
2961 | 2961 |
| |
2962 | 2962 |
| |
2963 |
| - | |
| 2963 | + | |
2964 | 2964 |
| |
2965 | 2965 |
| |
2966 | 2966 |
| |
| |||
2995 | 2995 |
| |
2996 | 2996 |
| |
2997 | 2997 |
| |
2998 |
| - | |
| 2998 | + | |
2999 | 2999 |
| |
3000 | 3000 |
| |
3001 | 3001 |
| |
|
Lines changed: 13 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4676 | 4676 |
| |
4677 | 4677 |
| |
4678 | 4678 |
| |
4679 |
| - | |
| 4679 | + | |
4680 | 4680 |
| |
4681 | 4681 |
| |
4682 | 4682 |
| |
| |||
4685 | 4685 |
| |
4686 | 4686 |
| |
4687 | 4687 |
| |
4688 |
| - | |
| 4688 | + | |
4689 | 4689 |
| |
4690 | 4690 |
| |
4691 | 4691 |
| |
| |||
4696 | 4696 |
| |
4697 | 4697 |
| |
4698 | 4698 |
| |
4699 |
| - | |
| 4699 | + | |
4700 | 4700 |
| |
4701 | 4701 |
| |
4702 | 4702 |
| |
| |||
4772 | 4772 |
| |
4773 | 4773 |
| |
4774 | 4774 |
| |
4775 |
| - | |
4776 |
| - | |
| 4775 | + | |
| 4776 | + | |
4777 | 4777 |
| |
4778 | 4778 |
| |
4779 | 4779 |
| |
| |||
4962 | 4962 |
| |
4963 | 4963 |
| |
4964 | 4964 |
| |
4965 |
| - | |
| 4965 | + | |
4966 | 4966 |
| |
4967 | 4967 |
| |
4968 | 4968 |
| |
| |||
4971 | 4971 |
| |
4972 | 4972 |
| |
4973 | 4973 |
| |
4974 |
| - | |
| 4974 | + | |
4975 | 4975 |
| |
4976 | 4976 |
| |
4977 | 4977 |
| |
| |||
4982 | 4982 |
| |
4983 | 4983 |
| |
4984 | 4984 |
| |
4985 |
| - | |
| 4985 | + | |
4986 | 4986 |
| |
4987 | 4987 |
| |
4988 | 4988 |
| |
| |||
5046 | 5046 |
| |
5047 | 5047 |
| |
5048 | 5048 |
| |
5049 |
| - | |
5050 |
| - | |
| 5049 | + | |
| 5050 | + | |
5051 | 5051 |
| |
5052 | 5052 |
| |
5053 | 5053 |
| |
| |||
5191 | 5191 |
| |
5192 | 5192 |
| |
5193 | 5193 |
| |
5194 |
| - | |
| 5194 | + | |
5195 | 5195 |
| |
5196 | 5196 |
| |
5197 | 5197 |
| |
| |||
5200 | 5200 |
| |
5201 | 5201 |
| |
5202 | 5202 |
| |
5203 |
| - | |
| 5203 | + | |
5204 | 5204 |
| |
5205 | 5205 |
| |
5206 | 5206 |
| |
| |||
5211 | 5211 |
| |
5212 | 5212 |
| |
5213 | 5213 |
| |
5214 |
| - | |
| 5214 | + | |
5215 | 5215 |
| |
5216 | 5216 |
| |
5217 | 5217 |
| |
|
0 commit comments
Comments
(0)