ICU-52 Cast U_MAX_PTR to some type. 'void' has no size!

X-SVN-Rev: 123
This commit is contained in:
Steven R. Loomis 1999-10-26 17:53:50 +00:00
parent 3d664ec1ed
commit 9b6b9be460
2 changed files with 3 additions and 3 deletions

View File

@ -745,7 +745,7 @@ int32_t ucnv_fromUChars (const UConverter * converter,
myTarget_limit = target + targetSize;
if(myTarget_limit < target) /*if targetsize is such that the limit*/
myTarget_limit = U_MAX_PTR; /* would wrap around, truncate it. */
myTarget_limit = (char *)U_MAX_PTR; /* would wrap around, truncate it. */
if (targetSize > 0)
{
@ -853,7 +853,7 @@ int32_t ucnv_toUChars (const UConverter * converter,
myTarget_limit = target + targetSize - 1;
if(myTarget_limit < target) /*if targetsize is such that the limit*/
myTarget_limit = U_MAX_PTR - 1; /* would wrap around, truncate it. */
myTarget_limit = ((UChar*)U_MAX_PTR) - 1; /* would wrap around, truncate it. */
/*Not in pure pre-flight mode */

View File

@ -785,7 +785,7 @@ UnicodeString::extract(UTextOffset start,
myTargetLimit = myTarget + arraySize;
if(myTargetLimit < myTarget) /* ptr wrapped around: pin to U_MAX_PTR */
myTargetLimit = U_MAX_PTR;
myTargetLimit = (char*)U_MAX_PTR;
// perform the conversion
// there is no loop here since we assume the buffer is large enough