ref: 875439cfcec2911d42c8fb98222827534c4ae5d3
parent: 3512a71269d8916bf93c324d6058ab3a535dbb08
author: suzuki toshiya <[email protected]>
date: Mon Oct 25 11:43:01 EDT 2010
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.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-10-25 suzuki toshiya <[email protected]>
+
+ 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 <[email protected]>
[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 <[email protected]>
--- a/src/cache/ftccache.h
+++ b/src/cache/ftccache.h
@@ -205,7 +205,7 @@
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; \