Skip to content

Commit 89fa21e

Browse files
committedOct 20, 2016
[processing] more complete support for int64 fields (follow up 8d2cc88)
(cherry picked from commit 649d41f)
1 parent 62a9436 commit 89fa21e

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
@@ -115,7 +115,7 @@ def processAlgorithm(self, progress):
115115
selectType = processLayer.fields()[selectindex].type()
116116
selectionError = False
117117

118-
if selectType == QVariant.Int or selectType == QVariant.LongLong:
118+
if selectType in [QVariant.Int, QVariant.LongLong, QVariant.UInt, QVariant.ULongLong]:
119119
try:
120120
y = int(comparisonvalue)
121121
except ValueError:
@@ -175,7 +175,7 @@ def processAlgorithm(self, progress):
175175
if aValue is None:
176176
continue
177177

178-
if selectType == QVariant.Int or selectType == QVariant.LongLong:
178+
if selectType in [QVariant.Int, QVariant.LongLong, QVariant.UInt, QVariant.ULongLong]:
179179
x = int(aValue)
180180
elif selectType == QVariant.Double:
181181
x = float(aValue)

0 commit comments

Comments
 (0)
Please sign in to comment.