check against capacity not count

This commit is contained in:
Jocelyn Fiat
2013-03-29 15:09:34 +01:00
parent 3bc3e3b874
commit 1fcc69b268

View File

@@ -49,7 +49,7 @@ feature -- Input
is_open_read: is_open_read is_open_read: is_open_read
not_end_of_input: not end_of_input not_end_of_input: not end_of_input
a_string_not_void: a_string /= Void a_string_not_void: a_string /= Void
valid_position: a_string.valid_index (pos) valid_position: pos > 0 and pos <= a_string.capacity
nb_large_enough: nb > 0 nb_large_enough: nb > 0
nb_small_enough: nb <= a_string.capacity - pos + 1 nb_small_enough: nb <= a_string.capacity - pos + 1
local local