Skip to content

Commit

Permalink
Fix out of bounds assignments
Browse files Browse the repository at this point in the history
Signed-off-by: Darby Johnston <darbyjohnston@yahoo.com>
  • Loading branch information
darbyjohnston authored and cary-ilm committed Aug 9, 2020
1 parent 9752e70 commit 9073608
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IlmBase/ImathTest/testMatrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ testMatrix ()

IMATH_INTERNAL_NAMESPACE::M22f m1;
m1[0][0] = 99.0f;
m1[1][2] = 101.0f;
m1[1][1] = 101.0f;

IMATH_INTERNAL_NAMESPACE::M22f test(m1);
assert(test == m1);
Expand All @@ -96,7 +96,7 @@ testMatrix ()

IMATH_INTERNAL_NAMESPACE::M22d m2;
m2[0][0] = 99.0f;
m2[1][2] = 101.0f;
m2[1][1] = 101.0f;

IMATH_INTERNAL_NAMESPACE::M22d test(m2);
assert(test == m2);
Expand Down

0 comments on commit 9073608

Please sign in to comment.