diff --git a/include/core/SkString.h b/include/core/SkString.h index ba6cf52912..e4bd7b7a73 100644 --- a/include/core/SkString.h +++ b/include/core/SkString.h @@ -105,7 +105,7 @@ static constexpr int kSkStrAppendScalar_MaxSize = 15; * Thus if the caller wants to add a 0 at the end, buffer must be at least * kSkStrAppendScalar_MaxSize + 1 bytes large. */ -char* SkStrAppendScalar(char buffer[], float); +char* SkStrAppendScalar(char buffer[], SkScalar); /** \class SkString diff --git a/src/core/SkString.cpp b/src/core/SkString.cpp index 89c1e4d0c6..3ed9636ef0 100644 --- a/src/core/SkString.cpp +++ b/src/core/SkString.cpp @@ -150,7 +150,7 @@ char* SkStrAppendS64(char string[], int64_t dec, int minDigits) { return SkStrAppendU64(string, udec, minDigits); } -char* SkStrAppendScalar(char string[], float value) { +char* SkStrAppendScalar(char string[], SkScalar value) { // since floats have at most 8 significant digits, we limit our %g to that. static const char gFormat[] = "%.8g"; // make it 1 larger for the terminating 0