- Notifications
You must be signed in to change notification settings - Fork28
Commit4faa1dc
committed
Suppress compiler warnings in dshash.c.
Some compilers complain, not unreasonably, about left-shifting anint32 "1" and then assigning the result to an int64. In practiceI sure hope that this data structure never gets large enough thatan overflow would actually occur; but let's cast the constant tothe right type to avoid the hazard.In passing, fix a typo in dshash.h.Amit Kapila, adjusted as per comment from Thomas Munro.Discussion:https://postgr.es/m/CAA4eK1+5vfVMYtjK_NX8O3-42yM3o80qdqWnQzGquPrbq6mb+A@mail.gmail.com1 parente451901 commit4faa1dc
2 files changed
+5
-5
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
315 | 315 |
| |
316 | 316 |
| |
317 | 317 |
| |
318 |
| - | |
| 318 | + | |
319 | 319 |
| |
320 | 320 |
| |
321 | 321 |
| |
| |||
676 | 676 |
| |
677 | 677 |
| |
678 | 678 |
| |
679 |
| - | |
| 679 | + | |
680 | 680 |
| |
681 | 681 |
| |
682 | 682 |
| |
| |||
707 | 707 |
| |
708 | 708 |
| |
709 | 709 |
| |
710 |
| - | |
| 710 | + | |
711 | 711 |
| |
712 | 712 |
| |
713 |
| - | |
| 713 | + | |
714 | 714 |
| |
715 | 715 |
| |
716 | 716 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
42 |
| - | |
| 42 | + | |
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
|
0 commit comments
Comments
(0)