Merge "Fix incorrect usage of bool"
This commit is contained in:
@@ -124,7 +124,7 @@ static bool writeAllBytes(const int fd, const void* buffer, const size_t byteCou
|
|||||||
static int writeBlock(FPDF_FILEWRITE* owner, const void* buffer, unsigned long size) {
|
static int writeBlock(FPDF_FILEWRITE* owner, const void* buffer, unsigned long size) {
|
||||||
const PdfToFdWriter* writer = reinterpret_cast<PdfToFdWriter*>(owner);
|
const PdfToFdWriter* writer = reinterpret_cast<PdfToFdWriter*>(owner);
|
||||||
const bool success = writeAllBytes(writer->dstFd, buffer, size);
|
const bool success = writeAllBytes(writer->dstFd, buffer, size);
|
||||||
if (success < 0) {
|
if (!success) {
|
||||||
ALOGE("Cannot write to file descriptor. Error:%d", errno);
|
ALOGE("Cannot write to file descriptor. Error:%d", errno);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user