Fixed warning.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19133 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-10-26 22:50:22 +00:00
parent 7430a5bea6
commit 1868b512e3
+2 -3
View File
@@ -18,7 +18,6 @@
#include <PicturePlayer.h>
#include <ServerProtocol.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -43,7 +42,7 @@ struct _BPictureExtent_ {
int32 CountPictures() const { return fPictures.CountItems(); }
BList &Pictures() { return fPictures; }
private:
void *fNewData;
int32 fNewSize;
@@ -297,7 +296,7 @@ status_t
BPicture::Unflatten(BDataIO *stream)
{
picture_header header;
if (stream->Read(&header, sizeof(header)) < sizeof(header)
if (stream->Read(&header, sizeof(header)) < (ssize_t)sizeof(header)
|| header.magic1 != 2 || header.magic2 != 0)
return B_ERROR;