Skip to content

Commit

Permalink
Fixed bugs that the function does not return correct values when debu…
Browse files Browse the repository at this point in the history
…gging.
  • Loading branch information
ddeguchi committed Jun 15, 2011
1 parent d519c97 commit aa20ccb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mist/operator/operator_array.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ inline const array< T, Allocator >& operator /=( array< T, Allocator > &a1, type
{
// ゼロ除算発生
::std::cerr << "zero division occured." << ::std::endl;
return;
return( a1 );
}
#endif
for( size_type i = 0 ; i < a1.size( ) ; i++ ) a1[i] /= val;
Expand Down
2 changes: 1 addition & 1 deletion mist/operator/operator_array2.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ inline const array2< T, Allocator >& operator /=( array2< T, Allocator > &a1, ty
{
// ゼロ除算発生
::std::cerr << "zero division occured." << ::std::endl;
return;
return( a1 );
}
#endif
for( size_type i = 0 ; i < a1.size( ) ; i++ ) a1[i] /= val;
Expand Down
2 changes: 1 addition & 1 deletion mist/operator/operator_array3.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ inline const array3< T, Allocator >& operator /=( array3< T, Allocator > &a1, ty
{
// ゼロ除算発生
::std::cerr << "zero division occured." << ::std::endl;
return;
return( a1 );
}
#endif
for( size_type i = 0 ; i < a1.size( ) ; i++ ) a1[i] /= val;
Expand Down

0 comments on commit aa20ccb

Please sign in to comment.