diff options
author | Richard Braun <syn@sceen.net> | 2006-02-10 13:39:54 +0000 |
---|---|---|
committer | Richard Braun <syn@sceen.net> | 2006-02-10 13:39:54 +0000 |
commit | 196a2b4c8bc6ff2e717f48d5fa74f080107ac72c (patch) | |
tree | aafc8c8d89b8115b8a4e7c0a1fb88a3f451514e2 | |
parent | 5446b2194498d8f4ea5500798ee37a48fea4c23b (diff) |
Fixed bug in binary left shift - operator<<().
-rw-r--r-- | mtxinteger.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mtxinteger.cc b/mtxinteger.cc index 822df03..4a55431 100644 --- a/mtxinteger.cc +++ b/mtxinteger.cc @@ -602,7 +602,7 @@ MtxInteger::operator<<(unsigned int bits) const sizeof(mtx_int_t) * new_integer.words_count); delete[] new_integer.words; new_integer.words = tmp_words; - new_integer.words[words_count] = 1; + new_integer.words[new_integer.words_count] = 1; new_integer.words_count++; } } @@ -619,7 +619,7 @@ MtxInteger::operator<<(unsigned int bits) const sizeof(mtx_int_t) * new_integer.words_count); delete[] new_integer.words; new_integer.words = tmp_words; - new_integer.words[words_count] = 0; + new_integer.words[new_integer.words_count] = 0; new_integer.words_count++; } |