diff options
author | Kostya Serebryany <kcc@google.com> | 2017-07-25 02:09:46 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2017-07-25 02:09:46 +0000 |
commit | 6f7befd10f071e50266b56c8c53ec8b248b60689 (patch) | |
tree | ba594e2122e84a1ddc10b0329657848677f20a1e /llvm/lib/Fuzzer/test/StrcmpTest.cpp | |
parent | c485ca05ac279b7bced1caa77f05666090af2ad6 (diff) | |
download | bcm5719-llvm-6f7befd10f071e50266b56c8c53ec8b248b60689.tar.gz bcm5719-llvm-6f7befd10f071e50266b56c8c53ec8b248b60689.zip |
[libFuzzer] make one test faster, fix compiler warnings in tests
llvm-svn: 308945
Diffstat (limited to 'llvm/lib/Fuzzer/test/StrcmpTest.cpp')
-rw-r--r-- | llvm/lib/Fuzzer/test/StrcmpTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/test/StrcmpTest.cpp b/llvm/lib/Fuzzer/test/StrcmpTest.cpp index e7636e8812f..81f041d913e 100644 --- a/llvm/lib/Fuzzer/test/StrcmpTest.cpp +++ b/llvm/lib/Fuzzer/test/StrcmpTest.cpp @@ -13,7 +13,7 @@ bool Eq(const uint8_t *Data, size_t Size, const char *Str) { size_t Len = strlen(Str); if (Size < Len) return false; if (Len >= sizeof(Buff)) return false; - memcpy(Buff, (char*)Data, Len); + memcpy(Buff, (const char*)Data, Len); Buff[Len] = 0; int res = strcmp(Buff, Str); return res == 0; |