Commit 875439cfcec2911d42c8fb98222827534c4ae5d3

suzuki toshiya 2010-10-25T15:43:01

Revert a change of `_idx' type in FTC_CACHE_LOOKUP_CMP(). * src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP): Revert the type of `_idx' from FT_PtrDist (by previous change) to original FT_UFast, to match with FT_CacheRec.

diff --git a/ChangeLog b/ChangeLog
index 0fa6b00..8ce055f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-10-25  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+
+	Revert a change of `_idx' type in FTC_CACHE_LOOKUP_CMP().
+
+	* src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP): Revert
+	the type of `_idx' from FT_PtrDist (by previous change)
+	to original FT_UFast, to match with FT_CacheRec.
+
 2010-10-24  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
 
 	[cache] Change the hash types to FT_PtrDist.
@@ -37,7 +45,7 @@
 	* src/cache/ftccmap.c (FTC_CMapCache_Lookup): Ditto.
 	* src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP): Ditto.
 	Also the type of the internal variable `_idx' is changed to
-	FT_PtrDist from FT_UInt32 for better pointer calculation.
+	FT_PtrDist from FT_UFast for better pointer calculation.
 	
 2010-10-24  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
 
diff --git a/src/cache/ftccache.h b/src/cache/ftccache.h
index e9c27af..10830a9 100644
--- a/src/cache/ftccache.h
+++ b/src/cache/ftccache.h
@@ -205,7 +205,7 @@ FT_BEGIN_HEADER
     FTC_Cache             _cache   = FTC_CACHE(cache);                   \
     FT_PtrDist            _hash    = (FT_PtrDist)(hash);                 \
     FTC_Node_CompareFunc  _nodcomp = (FTC_Node_CompareFunc)(nodecmp);    \
-    FT_PtrDist            _idx;                                          \
+    FT_UFast              _idx;                                          \
                                                                          \
                                                                          \
     error = FTC_Err_Ok;                                                  \