Make use of local variables that have been assigned already.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39955 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
wlux 2016-07-01 12:33:11 +00:00
parent 32563778cd
commit 7d5f121040

View file

@ -59,12 +59,12 @@ UTextNSStringAccess(UText *ut, int64_t nativeIndex, UBool forward)
if (forward)
{
if (nativeIndex < nativeLimit && nativeIndex >= ut->chunkNativeStart)
if (nativeIndex < nativeLimit && nativeIndex >= nativeStart)
{
/* The chunk already contains the index, set the offset
* to match it.
*/
ut->chunkOffset = nativeIndex - ut->chunkNativeStart;
ut->chunkOffset = nativeIndex - nativeStart;
return TRUE;
}
@ -92,12 +92,12 @@ UTextNSStringAccess(UText *ut, int64_t nativeIndex, UBool forward)
}
else
{
if (nativeIndex <= nativeLimit && nativeIndex > ut->chunkNativeStart)
if (nativeIndex <= nativeLimit && nativeIndex > nativeStart)
{
/* The chunk already contains the index, set the offset
* to match it.
*/
ut->chunkOffset = nativeIndex - ut->chunkNativeStart;
ut->chunkOffset = nativeIndex - nativeStart;
return TRUE;
}