summaryrefslogtreecommitdiff
path: root/python/ovs/db/parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/ovs/db/parser.py')
-rw-r--r--python/ovs/db/parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/ovs/db/parser.py b/python/ovs/db/parser.py
index 8858f00ff..073f76062 100644
--- a/python/ovs/db/parser.py
+++ b/python/ovs/db/parser.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2010 Nicira Networks
+# Copyright (c) 2010, 2011 Nicira Networks
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -67,7 +67,7 @@ def float_to_int(x):
# XXX still needed?
if type(x) == float:
integer = int(x)
- if integer == x and integer >= -2**53 and integer < 2**53:
+ if integer == x and -2**53 <= integer < 2**53:
return integer
return x