From 95a7a8611c6fa7c4c59797c174764525df4c2311 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Wed, 1 Feb 2012 20:46:10 +0000 Subject: [PATCH] Ensure function default argument matches template type. Fixes the error "error: default argument for parameter of type '_CGLPixelFormatAttribute' has type 'int'". --- glsize.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glsize.hpp b/glsize.hpp index 41ac515..d81cdf1 100644 --- a/glsize.hpp +++ b/glsize.hpp @@ -748,7 +748,7 @@ __glClearBuffer_size(GLenum buffer) */ template static inline size_t -__AttribList_size(const T *pAttribList, const T terminator = 0) +__AttribList_size(const T *pAttribList, const T terminator = static_cast(0)) { size_t size = 0; @@ -767,7 +767,7 @@ __AttribList_size(const T *pAttribList, const T terminator = 0) */ template static inline size_t -__AttribPairList_size(const T *pAttribList, const T terminator = 0) +__AttribPairList_size(const T *pAttribList, const T terminator = static_cast(0)) { size_t size = 0; -- 2.7.4