Fixed BBitmapStream return types that didn't match the class definition
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7667 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -128,7 +128,7 @@ BBitmapStream::~BBitmapStream()
|
|||||||
// B_BAD_VALUE if buffer is NULL or pos is invalid
|
// B_BAD_VALUE if buffer is NULL or pos is invalid
|
||||||
// or the amount read if the result >= 0
|
// or the amount read if the result >= 0
|
||||||
// ---------------------------------------------------------------
|
// ---------------------------------------------------------------
|
||||||
status_t
|
ssize_t
|
||||||
BBitmapStream::ReadAt(off_t pos, void *buffer, size_t size)
|
BBitmapStream::ReadAt(off_t pos, void *buffer, size_t size)
|
||||||
{
|
{
|
||||||
if (!fBitmap)
|
if (!fBitmap)
|
||||||
@@ -140,7 +140,7 @@ BBitmapStream::ReadAt(off_t pos, void *buffer, size_t size)
|
|||||||
if (!buffer || pos < 0)
|
if (!buffer || pos < 0)
|
||||||
return B_BAD_VALUE;
|
return B_BAD_VALUE;
|
||||||
|
|
||||||
size_t toRead;
|
ssize_t toRead;
|
||||||
void *source;
|
void *source;
|
||||||
|
|
||||||
if (pos < sizeof(TranslatorBitmap)) {
|
if (pos < sizeof(TranslatorBitmap)) {
|
||||||
@@ -181,7 +181,7 @@ BBitmapStream::ReadAt(off_t pos, void *buffer, size_t size)
|
|||||||
// big endian header,
|
// big endian header,
|
||||||
// or the amount written if the result is >= 0
|
// or the amount written if the result is >= 0
|
||||||
// ---------------------------------------------------------------
|
// ---------------------------------------------------------------
|
||||||
status_t
|
ssize_t
|
||||||
BBitmapStream::WriteAt(off_t pos, const void *data, size_t size)
|
BBitmapStream::WriteAt(off_t pos, const void *data, size_t size)
|
||||||
{
|
{
|
||||||
if (!size)
|
if (!size)
|
||||||
|
|||||||
Reference in New Issue
Block a user