mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
32563778cd
commit
7d5f121040
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue