Commit 4ca50e0
committed
Avoid inconsistent type declaration
Clang 3.3 correctly complains that a variable of type enum
MultiXactStatus cannot hold a value of -1, which makes sense. Change
the declared type of the variable to int instead, and apply casting as
necessary to avoid the warning.
Per notice from Andres Freund1 parent 81166a2 commit 4ca50e0
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
119 | 122 | | |
120 | 123 | | |
121 | 124 | | |
122 | 125 | | |
123 | | - | |
124 | | - | |
| 126 | + | |
| 127 | + | |
125 | 128 | | |
126 | 129 | | |
127 | 130 | | |
| |||
3847 | 3850 | | |
3848 | 3851 | | |
3849 | 3852 | | |
3850 | | - | |
| 3853 | + | |
3851 | 3854 | | |
3852 | 3855 | | |
3853 | 3856 | | |
| |||
3858 | 3861 | | |
3859 | 3862 | | |
3860 | 3863 | | |
3861 | | - | |
| 3864 | + | |
3862 | 3865 | | |
3863 | 3866 | | |
3864 | 3867 | | |
| |||
0 commit comments