diff options
author | Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> | 2014-11-17 22:01:27 +0100 |
---|---|---|
committer | Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> | 2014-11-17 22:01:27 +0100 |
commit | 92ddfcfff5cec32456e2d1e0d96671f1eb0e2986 (patch) | |
tree | 297dd644c2e001930c4e0aaa8cc209523e4c8dd4 /core/jni/android | |
parent | 52e2b6f79d44ff289c97653edea0548352c2f55b (diff) | |
download | frameworks_base-92ddfcfff5cec32456e2d1e0d96671f1eb0e2986.zip frameworks_base-92ddfcfff5cec32456e2d1e0d96671f1eb0e2986.tar.gz frameworks_base-92ddfcfff5cec32456e2d1e0d96671f1eb0e2986.tar.bz2 |
Fix incorrect usage of bool
A bool can't be < 0
Change-Id: Ie94ffadcb38c95214d1105c02610e59b4b2872b2
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Diffstat (limited to 'core/jni/android')
-rw-r--r-- | core/jni/android/graphics/pdf/PdfEditor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/android/graphics/pdf/PdfEditor.cpp b/core/jni/android/graphics/pdf/PdfEditor.cpp index 5f60c9e..66d1722 100644 --- a/core/jni/android/graphics/pdf/PdfEditor.cpp +++ b/core/jni/android/graphics/pdf/PdfEditor.cpp @@ -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; } |