From: José Fonseca Date: Thu, 18 Jun 2009 13:47:30 +0000 (+0100) Subject: util: Add cast. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8f382fd3f396e182255fe084bc32648b98ca1d94;p=mesa.git util: Add cast. It is expected to loose precision here. --- diff --git a/src/gallium/auxiliary/util/u_snprintf.c b/src/gallium/auxiliary/util/u_snprintf.c index 0d54299b28a..65bdd0df2b7 100644 --- a/src/gallium/auxiliary/util/u_snprintf.c +++ b/src/gallium/auxiliary/util/u_snprintf.c @@ -829,7 +829,7 @@ util_vsnprintf(char *str, size_t size, const char *format, va_list args) break; default: intptr = va_arg(args, int *); - *intptr = len; + *intptr = (int)len; break; } break;