Fixed a few warnings.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4381 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2003-08-26 21:36:38 +00:00
parent 9f01bd9197
commit 66abd4d0a6
8 changed files with 18 additions and 14 deletions
+1 -1
View File
@@ -215,7 +215,7 @@ status_t BMessageBody::ReplaceData(const char *name, int32 index,
{
debugger("\n\n\tyou \033[44;1;37mB\033[41;1;37me\033[m screwed\n\n");
}
if (index < RItem->Data().Size())
if (index < (int32)RItem->Data().Size())
{
RItem->Data()[index] = data;
}
+4 -2
View File
@@ -66,8 +66,9 @@ class BMessageField
static const char* sNullData;
BMessageField(const std::string& name, type_code t)
: fName(name), fType(t)
: fType(t), fName(name)
{;}
virtual ~BMessageField() {}
virtual const std::string& Name() const { return fName; }
virtual type_code Type() const { return fType; }
virtual bool FixedSize() const { return true; }
@@ -169,6 +170,7 @@ class BMessageFieldImpl : public BMessageField
fMaxSize(0),
fFlags(MSG_FLAG_ALL)
{;}
virtual ~BMessageFieldImpl() {}
virtual bool FixedSize() const
{ return fFlags & MSG_FLAG_FIXED_SIZE; }
@@ -397,7 +399,7 @@ template<> struct BMessageFieldPrintPolicy<float>
};
template<> struct BMessageFieldPrintPolicy<double>
{
static void PrintData(const double& d) { std::printf("%.8lf", d); }
static void PrintData(const double& d) { std::printf("%.8f", d); }
};
template<> struct BMessageFieldPrintPolicy<BString>
{