util: Add cast.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 18 Jun 2009 13:47:30 +0000 (14:47 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 18 Jun 2009 13:54:09 +0000 (14:54 +0100)
It is expected to loose precision here.

src/gallium/auxiliary/util/u_snprintf.c

index 0d54299b28aca9fa039d44452cfd6dc795779254..65bdd0df2b7d63609d1e15e9849c10ac4791bc9c 100644 (file)
@@ -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;