r13583 mmu_man - /trunk/libdom/src/utils/character_valid.c

netsurf at semichrome.net netsurf at semichrome.net
Sat Mar 24 09:51:47 GMT 2012


Author: mmu_man
Date: Sat Mar 24 04:51:47 2012
New Revision: 13583

URL: http://source.netsurf-browser.org?rev=13583&view=rev
Log:
C89.

Modified:
    trunk/libdom/src/utils/character_valid.c

Modified: trunk/libdom/src/utils/character_valid.c
URL: http://source.netsurf-browser.org/trunk/libdom/src/utils/character_valid.c?rev=13583&r1=13582&r2=13583&view=diff
==============================================================================
--- trunk/libdom/src/utils/character_valid.c (original)
+++ trunk/libdom/src/utils/character_valid.c Sat Mar 24 04:51:47 2012
@@ -142,10 +142,12 @@
 bool binary_search(unsigned int ch, int left, int right, 
 		const struct xml_char_range *range)
 {
+	int mid;
+
 	if (left > right)
 		return false;
 
-	int mid = (left + right) / 2;
+	mid = (left + right) / 2;
 	if (ch >= range[mid].start && ch <= range[mid].end)
 		return true;
 




More information about the netsurf-commits mailing list