summaryrefslogtreecommitdiff
path: root/fuzzing
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2017-10-18 20:40:57 +0000
committerMarshall Clow <mclow.lists@gmail.com>2017-10-18 20:40:57 +0000
commit2ac694b611eb005d2b6b0292e6a0f0f51af0c052 (patch)
treec4326e04892c18db33a444524ec8ecb5eb732767 /fuzzing
parent69447430a32447c0a94a4d5711a34d46c2bd7339 (diff)
downloadlibcxx-2ac694b611eb005d2b6b0292e6a0f0f51af0c052.tar.gz
Fix a think-o in the design of the stable_XXX sort tests; only shows up for test cases > 255 elements
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@316125 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'fuzzing')
-rw-r--r--fuzzing/fuzzing.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fuzzing/fuzzing.cpp b/fuzzing/fuzzing.cpp
index d4d0e602c..c4410199d 100644
--- a/fuzzing/fuzzing.cpp
+++ b/fuzzing/fuzzing.cpp
@@ -37,10 +37,10 @@ namespace fuzzing {
struct stable_test {
uint8_t key;
- uint8_t payload;
+ size_t payload;
stable_test(uint8_t k) : key(k), payload(0) {}
- stable_test(uint8_t k, uint8_t p) : key(k), payload(p) {}
+ stable_test(uint8_t k, size_t p) : key(k), payload(p) {}
};
void swap(stable_test &lhs, stable_test &rhs)