diff --git a/src/internal/NeoBitmapFile.h b/src/internal/NeoBitmapFile.h index 7a1fa5e8..69796785 100644 --- a/src/internal/NeoBitmapFile.h +++ b/src/internal/NeoBitmapFile.h @@ -102,9 +102,9 @@ template class NeoBitmapFile BitmapFileHeader bmpHeader; BitmapInfoHeader bmpInfoHeader; - int result; + size_t result; - result = _file.read(&bmpHeader, sizeof(bmpHeader)); + result = _file.read((uint8_t*)(&bmpHeader), sizeof(bmpHeader)); if (result != sizeof(bmpHeader) || bmpHeader.FileId != c_BitmapFileId || @@ -113,7 +113,7 @@ template class NeoBitmapFile goto error; } - result = _file.read(&bmpInfoHeader, sizeof(bmpInfoHeader)); + result = _file.read((uint8_t*)(&bmpInfoHeader), sizeof(bmpInfoHeader)); if (result != sizeof(bmpInfoHeader) || result != bmpInfoHeader.Size ||