Эх сурвалжийг харах

cc: fixed 'if' statements

Sven Sickert 11 жил өмнө
parent
commit
a550a962de
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      baselib/cc.cpp

+ 2 - 2
baselib/cc.cpp

@@ -271,8 +271,8 @@ double ColorConversion::ccmax(double val1, double val2, double val3)
      else if ( g == var_Max ) *h = ( 1./3 ) + del_R - del_B;
      else if ( g == var_Max ) *h = ( 2./3 ) + del_G - del_R;
 
-     if ( *h < 0 ) ; *h += 1;
-     if ( *h > 1 ) ; *h -= 1;
+     if ( *h < 0 ) *h += 1;
+     if ( *h > 1 ) *h -= 1;
   }
 
   return 1;