Skip to content

Commit b2a2c18

Browse files
committed
[processing] more complete support for int64 fields (follow up 8d2cc88)
(cherry picked from commit 649d41f)
1 parent dbf6169 commit b2a2c18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/plugins/processing/algs/qgis/Eliminate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def processAlgorithm(self, progress):
107107
selectType = inLayer.fields()[selectindex].type()
108108
selectionError = False
109109

110-
if selectType == QVariant.Int or selectType == QVariant.LongLong:
110+
if selectType in [QVariant.Int, QVariant.LongLong, QVariant.UInt, QVariant.ULongLong]:
111111
try:
112112
y = int(comparisonvalue)
113113
except ValueError:
@@ -167,7 +167,7 @@ def processAlgorithm(self, progress):
167167
if aValue is None:
168168
continue
169169

170-
if selectType == QVariant.Int or selectType == QVariant.LongLong:
170+
if selectType in [QVariant.Int, QVariant.LongLong, QVariant.UInt, QVariant.ULongLong]:
171171
x = int(aValue)
172172
elif selectType == QVariant.Double:
173173
x = float(aValue)

0 commit comments

Comments
 (0)