Skip to content

Commit

Permalink
Fix array overrun in li_carrays testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
wsfulton committed Jul 4, 2015
1 parent 2b4dda3 commit e543299
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Examples/test-suite/java/li_carrays_runme.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void main(String argv[]) throws Throwable

{
// global array variable
int length = 5;
int length = 3;
XY xyArrayPointer = li_carrays.getGlobalXYArray();
XYArray xyArray = XYArray.frompointer(xyArrayPointer);
for (int i=0; i<length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion Examples/test-suite/perl5/li_carrays_runme.pl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

{
# global array variable
my $length = 5;
my $length = 3;
my $xyArrayPointer = $li_carrays::globalXYArray;
my $xyArray = li_carrays::XYArray::frompointer($xyArrayPointer);
for (my $i=0; $i<$length; $i++) {
Expand Down

0 comments on commit e543299

Please sign in to comment.