[Jifty-commit] r1177 - in jifty/trunk: lib/Jifty

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Tue Jun 6 15:26:22 EDT 2006


Author: alexmv
Date: Tue Jun  6 15:26:22 2006
New Revision: 1177

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/LetMe.pm

Log:
 r13560 at zoq-fot-pik:  chmrr | 2006-06-06 15:25:37 -0400
  * Need to call _str() to get the string version of the Math::BigInt::Calc object


Modified: jifty/trunk/lib/Jifty/LetMe.pm
==============================================================================
--- jifty/trunk/lib/Jifty/LetMe.pm	(original)
+++ jifty/trunk/lib/Jifty/LetMe.pm	Tue Jun  6 15:26:22 2006
@@ -107,10 +107,11 @@
     # don't use Math::BigInt->new directly for simple computation,
     # because it insists exporting overload to us, which makes
     # devel::cover and devel::dprof very sad.
-    my $integer_digest = Math::BigInt::Calc->_from_hex("0x".substr($digest->hexdigest(),0,16));
-
-    # the scary version:
-    #my $integer_digest = Math::BigInt->new("0x". $digest->hexdigest() );
+    my $integer_digest = Math::BigInt::Calc->_str(
+        Math::BigInt::Calc->_from_hex(
+            substr( $digest->hexdigest(), 0, 16 )
+        )
+    );
 
     # koremutake it
     my $k = String::Koremutake->new;


More information about the Jifty-commit mailing list