array subscript out of range
Posted: 10.06.2009, 17:22
From https://bugzilla.novell.com/show_bug.cgi?id=216330 :
"
I just tried to compile package celestia-1.3.2-38 with the Intel
C compiler.
It said
bigfix.cpp(174): warning #175: subscript out of range
The source code is
if (n[N_WORDS] != 0)
Strange. Not only does n[N_WORDS] not exist, but also it
has no dependency on the loop variable i.
Perhaps the programmer intended
if (n[ i] != 0)
"
"
package celestia-1.5.1-48.3 and the compiler said
bigfix.cpp:168:22: warning: array subscript is above array bounds
"
"
I just tried to compile package celestia-1.3.2-38 with the Intel
C compiler.
It said
bigfix.cpp(174): warning #175: subscript out of range
The source code is
if (n[N_WORDS] != 0)
Strange. Not only does n[N_WORDS] not exist, but also it
has no dependency on the loop variable i.
Perhaps the programmer intended
if (n[ i] != 0)
"
"
package celestia-1.5.1-48.3 and the compiler said
bigfix.cpp:168:22: warning: array subscript is above array bounds
"