ICU-4288 Fix some compiler warnings.

X-SVN-Rev: 16929
This commit is contained in:
George Rhoten 2004-12-08 22:38:55 +00:00
parent d5dbf8a676
commit 5c4521733e
3 changed files with 12 additions and 12 deletions

View File

@ -393,7 +393,7 @@ u_scanf_double_handler(UFILE *input,
ufile_fill_uchar_buffer(input);
/* determine the size of the input's buffer */
len = input->str.fLimit - input->str.fPos;
len = (int32_t)(input->str.fLimit - input->str.fPos);
/* truncate to the width, if specified */
if(info->fWidth != -1)
@ -447,7 +447,7 @@ u_scanf_scientific_handler(UFILE *input,
ufile_fill_uchar_buffer(input);
/* determine the size of the input's buffer */
len = input->str.fLimit - input->str.fPos;
len = (int32_t)(input->str.fLimit - input->str.fPos);
/* truncate to the width, if specified */
if(info->fWidth != -1)
@ -510,7 +510,7 @@ u_scanf_scidbl_handler(UFILE *input,
ufile_fill_uchar_buffer(input);
/* determine the size of the input's buffer */
len = input->str.fLimit - input->str.fPos;
len = (int32_t)(input->str.fLimit - input->str.fPos);
/* truncate to the width, if specified */
if(info->fWidth != -1)
@ -583,7 +583,7 @@ u_scanf_integer_handler(UFILE *input,
ufile_fill_uchar_buffer(input);
/* determine the size of the input's buffer */
len = input->str.fLimit - input->str.fPos;
len = (int32_t)(input->str.fLimit - input->str.fPos);
/* truncate to the width, if specified */
if(info->fWidth != -1)
@ -651,7 +651,7 @@ u_scanf_percent_handler(UFILE *input,
ufile_fill_uchar_buffer(input);
/* determine the size of the input's buffer */
len = input->str.fLimit - input->str.fPos;
len = (int32_t)(input->str.fLimit - input->str.fPos);
/* truncate to the width, if specified */
if(info->fWidth != -1)
@ -870,7 +870,7 @@ u_scanf_spellout_handler(UFILE *input,
ufile_fill_uchar_buffer(input);
/* determine the size of the input's buffer */
len = input->str.fLimit - input->str.fPos;
len = (int32_t)(input->str.fLimit - input->str.fPos);
/* truncate to the width, if specified */
if(info->fWidth != -1)
@ -921,7 +921,7 @@ u_scanf_hex_handler(UFILE *input,
ufile_fill_uchar_buffer(input);
/* determine the size of the input's buffer */
len = input->str.fLimit - input->str.fPos;
len = (int32_t)(input->str.fLimit - input->str.fPos);
/* truncate to the width, if specified */
if(info->fWidth != -1)
@ -976,7 +976,7 @@ u_scanf_octal_handler(UFILE *input,
ufile_fill_uchar_buffer(input);
/* determine the size of the input's buffer */
len = input->str.fLimit - input->str.fPos;
len = (int32_t)(input->str.fLimit - input->str.fPos);
/* truncate to the width, if specified */
if(info->fWidth != -1)
@ -1023,7 +1023,7 @@ u_scanf_pointer_handler(UFILE *input,
ufile_fill_uchar_buffer(input);
/* determine the size of the input's buffer */
len = input->str.fLimit - input->str.fPos;
len = (int32_t)(input->str.fLimit - input->str.fPos);
/* truncate to the width, if specified */
if(info->fWidth != -1) {

View File

@ -306,7 +306,7 @@ u_file_write_flush( const UChar *chars,
int32_t numConverted = 0;
if (!f->fFile) {
int32_t charsLeft = f->str.fLimit - f->str.fPos;
int32_t charsLeft = (int32_t)(f->str.fLimit - f->str.fPos);
if (flush && charsLeft > count) {
count++;
}
@ -421,7 +421,7 @@ ufile_fill_uchar_buffer(UFILE *f)
if (f->fFileno == 0) {
/* Special case. Read from stdin one line at a time. */
char *retStr = fgets(charBuffer, ufmt_min(maxCPBytes, UFILE_CHARBUFFER_SIZE), f->fFile);
bytesRead = (retStr ? uprv_strlen(charBuffer) : 0);
bytesRead = (int32_t)(retStr ? uprv_strlen(charBuffer) : 0);
}
else {
/* A normal file */

View File

@ -57,7 +57,7 @@ operator<<(STD_OSTREAM& stream, const UnicodeString& str)
// write this chunk
if(s > buffer) {
stream.write(buffer, s - buffer);
stream.write(buffer, (int32_t)(s - buffer));
}
} while(errorCode == U_BUFFER_OVERFLOW_ERROR);
u_releaseDefaultConverter(converter);