projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mesa: Fix _mesa_float_to_unorm() on 32-bit systems.
[mesa.git]
/
src
/
mesa
/
main
/
format_utils.h
diff --git
a/src/mesa/main/format_utils.h
b/src/mesa/main/format_utils.h
index 78365cab5332c8ffae68325117499c69ae6e703f..3a528ceb3db613c820dc85923d45c6115daad08d 100644
(file)
--- a/
src/mesa/main/format_utils.h
+++ b/
src/mesa/main/format_utils.h
@@
-87,7
+87,7
@@
_mesa_float_to_unorm(float x, unsigned dst_bits)
else if (x > 1.0f)
return MAX_UINT(dst_bits);
else
- return _mesa_
l
roundevenf(x * MAX_UINT(dst_bits));
+ return _mesa_
i64
roundevenf(x * MAX_UINT(dst_bits));
}
static inline unsigned