Skip to content

Commit

Permalink
biginteger fix negative toString
Browse files Browse the repository at this point in the history
  • Loading branch information
blooddy committed Apr 9, 2016
1 parent 7c0b53f commit c528d52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/by/blooddy/crypto/math/BigInteger.as
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ package by.blooddy.crypto.math {
_DOMAIN.domainMemory = tmp;

mem.position = j;
return mem.readUTFBytes( pos - j );
return ( this._sign < 0 ? '-' : '' ) + mem.readUTFBytes( pos - j );

} else {
return '0';
Expand Down

0 comments on commit c528d52

Please sign in to comment.