[Zope-Checkins] CVS: Releases/Zope/lib/python/Products/PluginIndexes/TextIndex/Splitter/ISO_8859_1_Splitter/src - ISO_8859_1_Splitter.c:1.11

Matthew T. Kromer matt@zope.com
Mon, 22 Jul 2002 16:32:58 -0400


Update of /cvs-repository/Releases/Zope/lib/python/Products/PluginIndexes/TextIndex/Splitter/ISO_8859_1_Splitter/src
In directory cvs.zope.org:/tmp/cvs-serv4741/ISO_8859_1_Splitter/src

Modified Files:
	ISO_8859_1_Splitter.c 
Log Message:
Fix vexing bug in ISO splitter -- casting a signed char to int caused the
program to overwrite a section of the global offset table!  Changing this
to unsigned char fixes the problem.


=== Releases/Zope/lib/python/Products/PluginIndexes/TextIndex/Splitter/ISO_8859_1_Splitter/src/ISO_8859_1_Splitter.c 1.10 => 1.11 ===
     }
 
     for (i=0;i<sizeof(DIGITSETC);i++) {
-        letdig[(int)DIGITSETC[i]]=1;
+        letdig[(unsigned char)DIGITSETC[i]]=1;
     }
 }