replace UINT32_MAX with portable macro

git-svn-id: http://skia.googlecode.com/svn/trunk@741 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2011-01-28 20:54:15 +00:00
Родитель 618ef5ee3b
Коммит d2938db1d9
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -51,6 +51,8 @@
#define BOGUS_MATRIX_UNI_LOCATION 1000
#endif
#define GR_UINT32_MAX static_cast<uint32_t>(-1)
struct GrGpuGLShaders2::StageUniLocations {
GLint fTextureMatrixUni;
GLint fSamplerUni;
@ -218,7 +220,7 @@ public:
}
entry->fLRUStamp = fCurrLRUStamp;
if (UINT32_MAX == fCurrLRUStamp) {
if (GR_UINT32_MAX == fCurrLRUStamp) {
// wrap around! just trash our LRU, one time hit.
for (int i = 0; i < fCount; ++i) {
fEntries[i].fLRUStamp = 0;