diff options
Diffstat (limited to 'samplecode/SampleText.cpp')
-rw-r--r-- | samplecode/SampleText.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/samplecode/SampleText.cpp b/samplecode/SampleText.cpp index b1bb6cbc9f..c1090eefb9 100644 --- a/samplecode/SampleText.cpp +++ b/samplecode/SampleText.cpp @@ -134,12 +134,12 @@ static void test_breakText() SkASSERT(m > mm); } } - nn = n; + nn = SkIntToScalar(n); mm = m; } - nn = paint.breakText(text, length, width, &mm); - SkASSERT(nn == length); + int length2 = paint.breakText(text, length, width, &mm); + SkASSERT(length2 == length); SkASSERT(mm == width); } |