Incorrect numeric comparisons
Bug #1794068 reported by
Lucian Petrut
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-win |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In a few places, we're using "is" or "is not", when comparing numeric variables.
This is incorrect and will give unexpected results when the types do not match (for example, if one of the variables is a long int): http://
This issue only affects some metric related functions.
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/604742 /git.openstack. org/cgit/ openstack/ os-win/ commit/ ?id=1f8200ef790 9b13adf501f2805 554160fa934f3a
Committed: https:/
Submitter: Zuul
Branch: master
commit 1f8200ef7909b13 adf501f28055541 60fa934f3a
Author: Lucian Petrut <email address hidden>
Date: Mon Sep 24 14:00:03 2018 +0300
Fix incorrect numeric comparisons
In a few places, we're using "is" or "is not", when comparing
numeric variables.
This is incorrect and will give unexpected results when the types paste.openstack .org/raw/ 730618/
do not match (for example, if one of the variables is a long int):
http://
This change fixes those comparisons.
Closes-Bug: #1794068
Change-Id: Ibf28778879050c fdfa82ef4f9b587 170dde6203f