matz / zetabits.com (Yukihiro Matsumoto) wrote: > Hi, > > In message "[ruby-talk:7737] strange border-case Numeric errors" > on 00/12/20, "Brian F. Feldman" <green / FreeBSD.org> writes: > > |I haven't had a good enough chance to familiarize myself with the code in > |question, so I cannot supply a fix at the moment, but I have a couple border > |case bugs. > > sorry, here's the patch: > > Index: bignum.c > [...] Thanks for the prompt fix, matz! I should probably write a test case for this in Rubicon, too. It's funny that I never noticed this problem at all even when implementing SHA-1 in pure Ruby (^_^) and it only showed up when trying to do a power-of-2 "iteration" loop. -- Brian Fundakowski Feldman \ FreeBSD: The Power to Serve! / green / FreeBSD.org `------------------------------'