replace UINT32_MAX with portable macro
git-svn-id: http://skia.googlecode.com/svn/trunk@741 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/src/GrGpuGLShaders2.cpp b/gpu/src/GrGpuGLShaders2.cpp
index 225abc1..88c2b5c 100644
--- a/gpu/src/GrGpuGLShaders2.cpp
+++ b/gpu/src/GrGpuGLShaders2.cpp
@@ -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 @@
}
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;