Skip to content

Commit f1d1a5b

Browse files
committed
Fix a think-o in the design of the stable_XXX sort tests; only shows up for test cases > 255 elements
llvm-svn: 316125
1 parent 443695f commit f1d1a5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/fuzzing/fuzzing.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ namespace fuzzing {
3737

3838
struct stable_test {
3939
uint8_t key;
40-
uint8_t payload;
40+
size_t payload;
4141

4242
stable_test(uint8_t k) : key(k), payload(0) {}
43-
stable_test(uint8_t k, uint8_t p) : key(k), payload(p) {}
43+
stable_test(uint8_t k, size_t p) : key(k), payload(p) {}
4444
};
4545

4646
void swap(stable_test &lhs, stable_test &rhs)

0 commit comments

Comments
 (0)