Skip to content

Commit

Permalink
[processing] more complete support for int64 fields (follow up 8d2cc88)
Browse files Browse the repository at this point in the history
(cherry picked from commit 649d41f)
  • Loading branch information
alexbruy committed Oct 20, 2016
1 parent 62a9436 commit 89fa21e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/qgis/Eliminate.py
Expand Up @@ -115,7 +115,7 @@ def processAlgorithm(self, progress):
selectType = processLayer.fields()[selectindex].type()
selectionError = False

if selectType == QVariant.Int or selectType == QVariant.LongLong:
if selectType in [QVariant.Int, QVariant.LongLong, QVariant.UInt, QVariant.ULongLong]:
try:
y = int(comparisonvalue)
except ValueError:
Expand Down Expand Up @@ -175,7 +175,7 @@ def processAlgorithm(self, progress):
if aValue is None:
continue

if selectType == QVariant.Int or selectType == QVariant.LongLong:
if selectType in [QVariant.Int, QVariant.LongLong, QVariant.UInt, QVariant.ULongLong]:
x = int(aValue)
elif selectType == QVariant.Double:
x = float(aValue)
Expand Down

0 comments on commit 89fa21e

Please sign in to comment.