From cd8c6ee37f9fb8285fd7b96d2deeac313e98cca8 Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 21 Dec 2014 14:26:06 +0100 Subject: [PATCH] fix compile error on gcc/clang --- panda/src/gobj/texture.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/gobj/texture.cxx b/panda/src/gobj/texture.cxx index 129ef2f23c..b06d255993 100644 --- a/panda/src/gobj/texture.cxx +++ b/panda/src/gobj/texture.cxx @@ -4472,7 +4472,7 @@ do_get_clear_data(const CData *cdata, unsigned char *into) const { nassertr(cdata->_num_components == 1, 0); *((unsigned int *)into) = ((unsigned int)(cdata->_clear_color[0] * 16777215) << 8) + - (unsigned int)max(min(cdata->_clear_color[1], 255), 0); + (unsigned int)max(min(cdata->_clear_color[1], (PN_stdfloat)255), (PN_stdfloat)0); break; case T_int: