aboutsummaryrefslogtreecommitdiffhomepage
path: root/fuzz/FuzzParsePath.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fuzz/FuzzParsePath.cpp')
-rw-r--r--fuzz/FuzzParsePath.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fuzz/FuzzParsePath.cpp b/fuzz/FuzzParsePath.cpp
index 90b99ca8e5..b9d7f6b418 100644
--- a/fuzz/FuzzParsePath.cpp
+++ b/fuzz/FuzzParsePath.cpp
@@ -45,7 +45,7 @@ static void add_white(Fuzz* fuzz, SkString* atom) {
fuzz->nextRange(&reps, 0, 2);
for (uint8_t rep = 0; rep < reps; ++rep) {
uint8_t index;
- fuzz->nextRange(&index, 0, SK_ARRAY_COUNT(gWhiteSpace) - 1);
+ fuzz->nextRange(&index, 0, (int) SK_ARRAY_COUNT(gWhiteSpace) - 1);
if (gWhiteSpace[index]) {
atom->append(&gWhiteSpace[index], 1);
}
@@ -75,7 +75,7 @@ static void add_comma(Fuzz* fuzz, SkString* atom) {
SkString MakeRandomParsePathPiece(Fuzz* fuzz) {
SkString atom;
uint8_t index;
- fuzz->nextRange(&index, 0, SK_ARRAY_COUNT(gLegal) - 1);
+ fuzz->nextRange(&index, 0, (int) SK_ARRAY_COUNT(gLegal) - 1);
const Legal& legal = gLegal[index];
gEasy ? atom.append("\n") : add_white(fuzz, &atom);
bool b;