Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: kinosearch: commits

r3711 - trunk/c_src/KinoSearch/Util

 

 

kinosearch commits RSS feed   Index | Next | Previous | View Threaded


marvin at rectangular

Aug 4, 2008, 9:30 AM

Post #1 of 1 (525 views)
Permalink
r3711 - trunk/c_src/KinoSearch/Util

Author: creamyg
Date: 2008-08-04 09:30:44 -0700 (Mon, 04 Aug 2008)
New Revision: 3711

Modified:
trunk/c_src/KinoSearch/Util/CharBuf.c
Log:
Fix bug in CB_BaseX_To_I64 for high bases.


Modified: trunk/c_src/KinoSearch/Util/CharBuf.c
===================================================================
--- trunk/c_src/KinoSearch/Util/CharBuf.c 2008-08-04 01:42:17 UTC (rev 3710)
+++ trunk/c_src/KinoSearch/Util/CharBuf.c 2008-08-04 16:30:44 UTC (rev 3711)
@@ -371,7 +371,7 @@
if (isalnum(code_point)) {
i32_t addend = isdigit(code_point)
? code_point - '0'
- : tolower(code_point) - 'a';
+ : tolower(code_point) - 'a' + 10;
if (addend > (i32_t)base) break;
retval *= base;
retval += addend;


_______________________________________________
kinosearch-commits mailing list
kinosearch-commits [at] rectangular
http://www.rectangular.com/mailman/listinfo/kinosearch-commits

kinosearch commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.