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.
This commit is contained in:
suzuki toshiya 2010-10-25 15:43:01 +09:00
parent 3512a71269
commit 875439cfce
2 changed files with 10 additions and 2 deletions

View File

@ -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>

View File

@ -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; \