Commit bdbad150 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix array range check

parent 60d6d9e1
......@@ -141,6 +141,9 @@ The background pattern was downloaded from www.subtlepatterns.com
Changelog
=========
1.5.40 (07/2017)
- Fix range check in arrays
1.5.39 (07/2017)
- Minor fix in testcase Makefile
......
......@@ -1651,7 +1651,7 @@ def primary_index(root, context):
if not is_integer(idx_bty):
errors.append(error(root, 'Index is not an integer'))
else:
if float(idx_bty.Max) >= float(r_max):
if float(idx_bty.Max) > float(r_max):
errors.append(error(root,
'Index range [{id1} .. {id2}] '
'outside of range [{r1} .. {r2}]'
......
......@@ -139,7 +139,7 @@ except ImportError:
__all__ = ['opengeode', 'SDL_Scene', 'SDL_View', 'parse']
__version__ = '1.5.39'
__version__ = '1.5.40'
if hasattr(sys, 'frozen'):
# Detect if we are running on Windows (py2exe-generated)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment