r4089 - trunk/main/Math

From: <aelAT@ATshadanakar.org>
Date: Thu, 16 Aug 2007 17:35:02 +0400 (MSD)

Author: ael
Date: 2007-08-16 17:35:02 +0400 (Thu, 16 Aug 2007)
New Revision: 4089

Modified:
   trunk/main/Math/GmpBigIntegerFactory.class.php
Log:
4088 from 0.10

Modified: trunk/main/Math/GmpBigIntegerFactory.class.php
===================================================================
--- trunk/main/Math/GmpBigIntegerFactory.class.php 2007-08-16 13:34:30 UTC (rev 4088)
+++ trunk/main/Math/GmpBigIntegerFactory.class.php 2007-08-16 13:35:02 UTC (rev 4089)
@@ -54,7 +54,8 @@
                         
                         $numBytes = ceil(log($stop->floatValue(), 2) / 8);
                         
- return $this->makeFromBinary($source->getBytes($numBytes))->
+ return $this->
+ makeFromBinary("\x00".$source->getBytes($numBytes))->
                                 mod($stop);
                 }
         }
Received on Thu Aug 16 2007 - 17:35:02 MSD

This archive was generated by hypermail 2.2.0 : Sun Oct 28 2007 - 00:19:48 MSD