summaryrefslogtreecommitdiffstats
path: root/skia/sgl/SkString.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'skia/sgl/SkString.cpp')
-rw-r--r--skia/sgl/SkString.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/skia/sgl/SkString.cpp b/skia/sgl/SkString.cpp
index 839f5c4..c683e35 100644
--- a/skia/sgl/SkString.cpp
+++ b/skia/sgl/SkString.cpp
@@ -1,6 +1,6 @@
/* libs/graphics/sgl/SkString.cpp
**
-** Copyright 2006, Google Inc.
+** Copyright 2006, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
@@ -107,7 +107,10 @@ char* SkStrAppendScalar(char string[], SkScalar value)
const uint16_t* tens = gTens;
x = SkFixedRound(frac * 10000);
- SkASSERT(x < 10000);
+ SkASSERT(x <= 10000);
+ if (x == 10000) {
+ x -= 1;
+ }
*string++ = '.';
do {
unsigned powerOfTen = *tens++;