aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkError.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkError.cpp')
-rw-r--r--src/core/SkError.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkError.cpp b/src/core/SkError.cpp
index f5d233c6da..9e8ff2ddef 100644
--- a/src/core/SkError.cpp
+++ b/src/core/SkError.cpp
@@ -130,7 +130,7 @@ void SkErrorInternals::SetError(SkError code, const char *fmt, ...) {
}
sprintf( str, "%s: ", error_name );
- int string_left = ERROR_STRING_LENGTH - strlen( str );
+ int string_left = SkToInt(ERROR_STRING_LENGTH - strlen(str));
str += strlen(str);
va_start( args, fmt );