]> gitweb.factorcode.org Git - factor.git/commitdiff
colors.hsv: make sure Hi is an integer.
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 10 Nov 2016 18:34:08 +0000 (10:34 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 10 Nov 2016 18:34:08 +0000 (10:34 -0800)
basis/colors/hsv/hsv.factor

index 194845efd140ad54e9ad4938fbc3ae7bba08de60..afc32e10c93b75ec914578aa705fb89abd42668e 100644 (file)
@@ -17,7 +17,7 @@ C: <hsva> hsva
 
 <PRIVATE
 
-: Hi ( hsv -- Hi ) hue>> 60 / floor 6 mod ; inline
+: Hi ( hsv -- Hi ) hue>> 60 / floor 6 mod >integer ; inline
 
 : f ( hsv -- f ) [ hue>> 60 / ] [ Hi ] bi - ; inline