commit | 139dc3c57c9367f50ca9e37db05eed318e678d8a | [log] [tgz] |
---|---|---|
author | Logan <tzuhsiang.chien@gmail.com> | Fri Dec 03 01:32:05 2010 +0800 |
committer | Logan <tzuhsiang.chien@gmail.com> | Fri Dec 03 01:32:05 2010 +0800 |
tree | 6f134f4bd4b3206a0d1f3054f9248cecf8a104fc | |
parent | 9ea54b5c030d6d800f480f43fdb9caae5fb7eda3 [diff] [blame] |
readBC should return negative number if cache file exists.
diff --git a/lib/bcc/Compiler.cpp b/lib/bcc/Compiler.cpp index 057bb18..9aa2ad7 100644 --- a/lib/bcc/Compiler.cpp +++ b/lib/bcc/Compiler.cpp
@@ -332,7 +332,7 @@ mCacheFd = openCacheFile(resName, true /* createIfMissing */); if (mCacheFd >= 0 && !mCacheNew) { // Just use cache file - return -mCacheFd; + return -mCacheFd - 1; } }