diff options
author | Brian Carlstrom <bdc@google.com> | 2013-09-03 11:51:42 -0700 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2013-09-03 11:54:54 -0700 |
commit | 179486aee731f734207873244542993ed4bcff21 (patch) | |
tree | 8a4c9c5d0f518844584a991269e5571fd50bae01 /runtime | |
parent | 144a1397d09af54c0d098b7c2254e4d04bbddf9b (diff) | |
download | art-179486aee731f734207873244542993ed4bcff21.zip art-179486aee731f734207873244542993ed4bcff21.tar.gz art-179486aee731f734207873244542993ed4bcff21.tar.bz2 |
Fix ImageHeader.IsValid
Change-Id: Ia56f4ded63a726a416225bf4a536175aa435866e
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/image.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/image.h b/runtime/image.h index 5119e3a..0e0a90a 100644 --- a/runtime/image.h +++ b/runtime/image.h @@ -42,10 +42,10 @@ class PACKED(4) ImageHeader { uint32_t oat_file_end); bool IsValid() const { - if (memcmp(magic_, kImageMagic, sizeof(kImageMagic) != 0)) { + if (memcmp(magic_, kImageMagic, sizeof(kImageMagic)) != 0) { return false; } - if (memcmp(version_, kImageVersion, sizeof(kImageVersion) != 0)) { + if (memcmp(version_, kImageVersion, sizeof(kImageVersion)) != 0) { return false; } return true; |