зеркало из https://github.com/mozilla/moz-skia.git
Fixed Skia compilation error with strict clang.
BUG=skia: R=reed@google.com, sergeyberezin@chromium.org, hcm@google.com Author: kolczyk@opera.com Review URL: https://codereview.chromium.org/227043006 git-svn-id: http://skia.googlecode.com/svn/trunk@14071 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
0f8c859fb8
Коммит
b7fedac2d1
1
AUTHORS
1
AUTHORS
|
@ -19,6 +19,7 @@ Igalia <*@igalia.com>
|
|||
Intel <*@intel.com>
|
||||
Jacek Caban <cjacek@gmail.com>
|
||||
NVIDIA <*@nvidia.com>
|
||||
Opera Software ASA <*@opera.com>
|
||||
Samsung <*@samsung.com>
|
||||
Skia Buildbots <skia.buildbots@gmail.com>
|
||||
Steve Singer <steve@ssinger.info>
|
||||
|
|
|
@ -513,9 +513,9 @@ void SkParse::TestColor() {
|
|||
size_t len = strlen(nameRGB.name);
|
||||
memcpy(bad, nameRGB.name, len);
|
||||
bad[len - 1] -= 1;
|
||||
SkASSERT(FindColor(bad, &result) == false);
|
||||
SkASSERT(FindColor(bad, &result) == NULL);
|
||||
bad[len - 1] += 2;
|
||||
SkASSERT(FindColor(bad, &result) == false);
|
||||
SkASSERT(FindColor(bad, &result) == NULL);
|
||||
}
|
||||
result = SK_ColorBLACK;
|
||||
SkASSERT(FindColor("lightGrey", &result));
|
||||
|
|
Загрузка…
Ссылка в новой задаче