From 2410a823c6a98349b1a6f6ac65c4814fc206446b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 29 Jun 2004 19:42:45 +0000 Subject: [PATCH] Fixed some warnings. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8232 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/app/PropertyInfo.cpp | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/kits/app/PropertyInfo.cpp b/src/kits/app/PropertyInfo.cpp index e957c59cc5..93cac83bd2 100644 --- a/src/kits/app/PropertyInfo.cpp +++ b/src/kits/app/PropertyInfo.cpp @@ -418,33 +418,28 @@ void BPropertyInfo::PrintToStream() const printf(" property commands types specifiers\n"); printf("--------------------------------------------------------------------------------\n"); - for (int32 pi = 0; fPropInfo[pi].name != 0; pi++) - { + for (int32 pi = 0; fPropInfo[pi].name != 0; pi++) { // property printf("%14s", fPropInfo[pi].name); // commands - for (int32 i = 0; i < 10 && fPropInfo[pi].commands[i] != 0; i++) - { + for (int32 i = 0; i < 10 && fPropInfo[pi].commands[i] != 0; i++) { uint32 command = fPropInfo[pi].commands[i]; - printf(" %c%c%c%-28c", (command & 0xFF000000) >> 24, - (command & 0xFF0000) >> 16, (command & 0xFF00) >> 8, - command & 0xFF); + printf(" %c%c%c%-28c", int(command & 0xFF000000) >> 24, + int(command & 0xFF0000) >> 16, int(command & 0xFF00) >> 8, + int(command) & 0xFF); } // types - for (int32 i = 0; i < 10 && fPropInfo[pi].types[i] != 0; i++) - { + for (int32 i = 0; i < 10 && fPropInfo[pi].types[i] != 0; i++) { uint32 type = fPropInfo[pi].types[i]; - printf("%c%c%c%c", (type & 0xFF000000) >> 24, - (type & 0xFF0000) >> 16, (type & 0xFF00) >> 8, type & 0xFF); + printf("%c%c%c%c", int(type & 0xFF000000) >> 24, + int(type & 0xFF0000) >> 16, int(type & 0xFF00) >> 8, (int)type & 0xFF); } // specifiers - for (int32 i = 0; i < 10 && fPropInfo[pi].specifiers[i] != 0; i++) - { + for (int32 i = 0; i < 10 && fPropInfo[pi].specifiers[i] != 0; i++) { uint32 spec = fPropInfo[pi].specifiers[i]; - - printf("%d", spec); + printf("%lu", spec); } printf("\n"); }