use SkToS32 to turn a ptrdiff_t into an int (on 64bit build)
git-svn-id: http://skia.googlecode.com/svn/trunk@7562 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
71cf3ae872
commit
3d5b998bd7
@ -33,7 +33,7 @@ int SkStrStartsWithOneOf(const char string[], const char prefixes[]);
|
||||
static int SkStrFind(const char string[], const char substring[]) {
|
||||
const char *first = strstr(string, substring);
|
||||
if (NULL == first) return -1;
|
||||
return first - &(string[0]);
|
||||
return SkToS32(first - &string[0]);
|
||||
}
|
||||
|
||||
static bool SkStrContains(const char string[], const char substring[]) {
|
||||
|
Loading…
Reference in New Issue
Block a user