From 114dc17f5bc2ce381f239a708a0a5e96bfd6eab4 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Mon, 8 Apr 2019 08:02:48 -0500 Subject: [PATCH] BigInteger: toBits(true) wasn't working correctly --- phpseclib/Math/BigInteger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Math/BigInteger.php b/phpseclib/Math/BigInteger.php index 1ca135aa..a9163b2b 100644 --- a/phpseclib/Math/BigInteger.php +++ b/phpseclib/Math/BigInteger.php @@ -232,7 +232,7 @@ class BigInteger implements \Serializable */ function toBits($twos_compliment = false) { - return $this->value->toBits(); + return $this->value->toBits($twos_compliment); } /**