mirror of
https://git.rtems.org/rtems-tools/
synced 2025-10-17 12:39:53 +08:00
Object can have index from 1 to 'maximum'
This commit is contained in:

committed by
Chris Johns

parent
10bcd5d4dc
commit
ce55b57c4c
@@ -68,7 +68,7 @@ class infotables:
|
||||
n = self.name(api, _class)
|
||||
self.load(n)
|
||||
max = self.maximum(api, _class)
|
||||
if index >= max:
|
||||
if index > max:
|
||||
raise IndexError('object index out of range (%d)' % (max))
|
||||
table_type = self.tables_types[n]
|
||||
expr = '(' + table_type[0] + '*)' + \
|
||||
|
Reference in New Issue
Block a user