projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21bfd0f
)
util: Add cast.
author
José Fonseca
<jfonseca@vmware.com>
Thu, 18 Jun 2009 13:47:30 +0000
(14:47 +0100)
committer
José 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
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_snprintf.c
b/src/gallium/auxiliary/util/u_snprintf.c
index
0d54299
..
65bdd0d
100644
(file)
--- 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;