Merge "Fix incorrect usage of bool"

This commit is contained in:
Chih-hung Hsieh
2014-11-19 18:01:19 +00:00
committed by Gerrit Code Review

View File

@@ -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) {
const PdfToFdWriter* writer = reinterpret_cast<PdfToFdWriter*>(owner);
const bool success = writeAllBytes(writer->dstFd, buffer, size);
if (success < 0) {
if (!success) {
ALOGE("Cannot write to file descriptor. Error:%d", errno);
return 0;
}