[PATCH libXaw3d] Fix parameters of FloatInRange

Matt Turner mattst88 at gmail.com
Wed Feb 29 11:28:35 PST 2012


Introduced in f6cd786d1.

Reported-by: Jean-Pierre Demailly <Jean-Pierre.Demailly at ujf-grenoble.fr>
Signed-off-by: Matt Turner <mattst88 at gmail.com>
---
 src/Scrollbar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Scrollbar.c b/src/Scrollbar.c
index be74ed3..5667327 100644
--- a/src/Scrollbar.c
+++ b/src/Scrollbar.c
@@ -865,7 +865,7 @@ InRange(int num, int small, int big)
  */
 
 static float
-FloatInRange(int num, int small, int big)
+FloatInRange(float num, float small, float big)
 {
     return (num < small) ? small : ((num > big) ? big : num);
 }
-- 
1.7.3.4



More information about the xorg-devel mailing list