Skip to content

Commit 649d41f

Browse files
committedOct 20, 2016
[processing] more complete support for int64 fields (follow up 8d2cc88)
1 parent 6df926d commit 649d41f

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

116-
if selectType == QVariant.Int or selectType == QVariant.LongLong:
116+
if selectType in [QVariant.Int, QVariant.LongLong, QVariant.UInt, QVariant.ULongLong]:
117117
try:
118118
y = int(comparisonvalue)
119119
except ValueError:
@@ -173,7 +173,7 @@ def processAlgorithm(self, progress):
173173
if aValue is None:
174174
continue
175175

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

0 commit comments

Comments
 (0)
Please sign in to comment.