]> git.imager.perl.org - imager.git/blobdiff - color.c
avoid a possible sign-extension for offsets/sizes in SGI
[imager.git] / color.c
diff --git a/color.c b/color.c
index d83d8660016826e0f7682e8ccfc9847ef1a6016f..634a6c85c06e9a3d7f3869ca3af653705f75834f 100644 (file)
--- a/color.c
+++ b/color.c
@@ -1,4 +1,4 @@
-#include "image.h"
+#include "imager.h"
 #include <math.h>
 
 /*
 #include <math.h>
 
 /*
@@ -16,6 +16,9 @@ color.c - color manipulation functions
 
 A collection of utility functions for converting between color spaces.
 
 
 A collection of utility functions for converting between color spaces.
 
+=over
+
+=cut
 */
 
 #define EPSILON (1e-8)
 */
 
 #define EPSILON (1e-8)
@@ -33,7 +36,7 @@ Each value is scaled into the range 0 to 1.0.
 =cut
 */
 void i_rgb_to_hsvf(i_fcolor *color) {
 =cut
 */
 void i_rgb_to_hsvf(i_fcolor *color) {
-  double h, s, v;
+  double h = 0, s, v;
   double temp;
   double Cr, Cg, Cb;
 
   double temp;
   double Cr, Cg, Cb;
 
@@ -74,7 +77,7 @@ Each value is scaled into the range 0 to 255.
 =cut
 */
 void i_rgb_to_hsv(i_color *color) {
 =cut
 */
 void i_rgb_to_hsv(i_color *color) {
-  double h, s, v;
+  double h = 0, s, v;
   double temp;
   double Cr, Cg, Cb;
 
   double temp;
   double Cr, Cg, Cb;