summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-06-18 14:47:30 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-06-18 14:54:09 +0100
commit8f382fd3f396e182255fe084bc32648b98ca1d94 (patch)
tree84d23586f8e932cbfe9b2fa38512b8bb04a15fb0 /src
parent21bfd0f4bdd4222346c7f2db956e7fc1645d2130 (diff)
util: Add cast.
It is expected to loose precision here.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/util/u_snprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_snprintf.c b/src/gallium/auxiliary/util/u_snprintf.c
index 0d54299b28..65bdd0df2b 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;