summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-08-14 14:59:46 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-08-14 14:59:46 (GMT)
commit622a22a92112acf017fe1a24bd0f6df49699e8e2 (patch)
treeb895bf898e0fa16966f71edf76caab8b6d6e81b3 /Utilities
parent6b5403c5861771dee082c0040a6f91162ccb9c32 (diff)
downloadCMake-622a22a92112acf017fe1a24bd0f6df49699e8e2.zip
CMake-622a22a92112acf017fe1a24bd0f6df49699e8e2.tar.gz
CMake-622a22a92112acf017fe1a24bd0f6df49699e8e2.tar.bz2
COMP: Remove more warnings
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmcompress/cmcompress.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Utilities/cmcompress/cmcompress.c b/Utilities/cmcompress/cmcompress.c
index 2038799..dbc2640 100644
--- a/Utilities/cmcompress/cmcompress.c
+++ b/Utilities/cmcompress/cmcompress.c
@@ -114,7 +114,7 @@ int cmcompress_compress_start(struct cmcompress_stream* cdata)
if (cdata->nomagic == 0)
{
char headLast = (char)(cdata->maxbits | cdata->block_compress);
- cdata->output_stream(cdata, magic_header, 2);
+ cdata->output_stream(cdata, (const char*)magic_header, 2);
cdata->output_stream(cdata, &headLast, 1);
if(ferror(stdout))
{
@@ -219,7 +219,7 @@ nomatch:
#endif
)
{
- codetabof (i) = cdata->free_ent++; /* code -> hashtable */
+ codetabof (i) = (unsigned short)(cdata->free_ent++); /* code -> hashtable */
htabof (i) = cdata->fcode;
}
else if ( (count_int)cdata->in_count >= cdata->checkpoint && cdata->block_compress )
@@ -446,14 +446,14 @@ int output(struct cmcompress_stream* cdata, code_int code)
/* Get any 8 bit parts in the middle (<=1 for up to 16 bits). */
if ( bits >= 8 )
{
- *bp++ = code;
+ *bp++ = (char)(code);
code >>= 8;
bits -= 8;
}
/* Last bits. */
if(bits)
{
- *bp = code;
+ *bp = (char)(code);
}
#endif /* vax */
cdata->offset += cdata->n_bits;