Fix sign/unsigned warnings in benchmain.cpp and gmmain.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@8079 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp
index 9c7b442..f90d963 100644
--- a/bench/benchmain.cpp
+++ b/bench/benchmain.cpp
@@ -363,7 +363,7 @@
#if SK_SUPPORT_GPU
struct {
- size_t fBytes;
+ int fBytes;
int fCount;
} gpuCacheSize = { -1, -1 }; // -1s mean use the default
#endif
@@ -659,7 +659,7 @@
int count;
context->getTextureCacheLimits(&count, &bytes);
if (-1 != gpuCacheSize.fBytes) {
- bytes = gpuCacheSize.fBytes;
+ bytes = static_cast<size_t>(gpuCacheSize.fBytes);
}
if (-1 != gpuCacheSize.fCount) {
count = gpuCacheSize.fCount;