[varStore] Rename variable as per review

https://github.com/harfbuzz/harfbuzz/pull/3605
This commit is contained in:
Behdad Esfahbod 2022-05-24 09:00:44 -06:00
parent 89939c9cc3
commit 6010feeeb5
1 changed files with 6 additions and 6 deletions

View File

@ -2614,12 +2614,12 @@ struct VarRegionList
if (unlikely (region_index >= regionCount)) if (unlikely (region_index >= regionCount))
return 0.; return 0.;
float *cached = nullptr; float *cached_value = nullptr;
if (cache) if (cache)
{ {
cached = &(cache[region_index]); cached_value = &(cache[region_index]);
if (likely (*cached != REGION_CACHE_ITEM_CACHE_INVALID)) if (likely (*cached_value != REGION_CACHE_ITEM_CACHE_INVALID))
return *cached; return *cached_value;
} }
const VarRegionAxis *axes = axesZ.arrayZ + (region_index * axisCount); const VarRegionAxis *axes = axesZ.arrayZ + (region_index * axisCount);
@ -2633,14 +2633,14 @@ struct VarRegionList
if (factor == 0.f) if (factor == 0.f)
{ {
if (cache) if (cache)
*cached = 0.; *cached_value = 0.;
return 0.; return 0.;
} }
v *= factor; v *= factor;
} }
if (cache) if (cache)
*cached = v; *cached_value = v;
return v; return v;
} }