Index: src/utils/win/SkWGL_win.cpp |
diff --git a/src/utils/win/SkWGL_win.cpp b/src/utils/win/SkWGL_win.cpp |
index f20262b81840eba6b7416872eca6c44194bd3cf2..4b3b3e63aedd98fc118ae800d23b127cc71d9a3b 100644 |
--- a/src/utils/win/SkWGL_win.cpp |
+++ b/src/utils/win/SkWGL_win.cpp |
@@ -312,7 +312,7 @@ HGLRC SkCreateWGLContext(HDC dc, int msaaSampleCount, bool preferCoreProfile) { |
unsigned int num; |
int formats[64]; |
extensions.choosePixelFormat(dc, msaaIAttrs, fAttrs, 64, formats, &num); |
- num = min(num,64); |
+ num = SkTMin(num, 64U); |
int formatToTry = extensions.selectFormat(formats, |
num, |
dc, |