Cleaning Up Some Warnings

This commit is contained in:
Roger Hughston 2006-02-16 01:20:07 +00:00
parent 0f7e9e7ffa
commit 2b32bad34f
2 changed files with 7 additions and 3 deletions

View File

@ -185,14 +185,18 @@ init_libexpress() {
init_system_type_handles();
PandaSystem *ps = PandaSystem::get_global_ptr();
#ifdef HAVE_ZLIB
{
PandaSystem *ps = PandaSystem::get_global_ptr();
ps->add_system("zlib");
}
#endif
#ifdef HAVE_THREADS
{
PandaSystem *ps = PandaSystem::get_global_ptr();
ps->add_system("threads");
}
#endif
}

View File

@ -58,7 +58,7 @@ dump_hex(ostream &out) const {
size_t num_bytes = get_length();
for (size_t line = 0; line < num_bytes; line += 16) {
char hex[12];
sprintf(hex, "%04x ", line);
sprintf(hex, "%04x ", ((unsigned int )line));
out << hex;
size_t p;