mirror of
https://github.com/Michaelangel007/apple2_prodos_utils.git
synced 2026-10-22 00:02:22 +00:00
Cleanup size_t warnings
This commit is contained in:
1 parent
dac936c14a
commit
9a6c3ca298
4 files changed
+27
-28
No files matched your search
+4
-4
@@ -3,10 +3,10 @@
|
||||
// @param nLen - copy up to N chars. If zero will calculate source string length
|
||||
// @return Length of string not including NULL terminator
|
||||
// ========================================================================
|
||||
size_t string_CopyUpper( char *pDst, const char *pSrc, int nLen = 0 )
|
||||
int string_CopyUpper( char *pDst, const char *pSrc, int nLen = 0 )
|
||||
{
|
||||
if( !nLen )
|
||||
nLen = strlen( pSrc );
|
||||
nLen = (int) strlen( pSrc );
|
||||
|
||||
char *pBeg = pDst;
|
||||
|
||||
@@ -20,12 +20,12 @@ size_t string_CopyUpper( char *pDst, const char *pSrc, int nLen = 0 )
|
||||
if((c >= 'a') && (c <= 'z' ))
|
||||
c -= ('a' - 'A');
|
||||
|
||||
*pDst++ = c;
|
||||
*pDst++ = c;
|
||||
}
|
||||
|
||||
*pDst = 0;
|
||||
|
||||
return (pDst - pBeg);
|
||||
return (int)(pDst - pBeg);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user