From 875439cfcec2911d42c8fb98222827534c4ae5d3 Mon Sep 17 00:00:00 2001 From: suzuki toshiya Date: Mon, 25 Oct 2010 15:43:01 +0900 Subject: [PATCH] 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. --- ChangeLog | 10 +++++++++- src/cache/ftccache.h | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0fa6b00dc..8ce055fc0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2010-10-25 suzuki toshiya + + 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 [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 diff --git a/src/cache/ftccache.h b/src/cache/ftccache.h index e9c27afd8..10830a9f8 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; \