]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 3 May 2012 11:51:12 +0000 (11:51 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 3 May 2012 11:51:12 +0000 (11:51 +0000)
Magick++/tests/attributes.cpp

index 23aef539193d20ce7ab740ca797ac4b4f4901f93..cdfd6f0798108313f292cf89d657a958b3592c53 100644 (file)
@@ -350,7 +350,7 @@ int main( int /*argc*/, char ** argv)
       // Test default setting
       double x, y;
       image.chromaBluePrimary( &x, &y );
-      if ( x != 0.1500 || y != 0.0600 )
+      if ( x != 0.1500f || y != 0.0600f )
        {
          ++failures;
          cout << "Line: " << __LINE__
@@ -376,7 +376,7 @@ int main( int /*argc*/, char ** argv)
       // Test default setting
       double x, y;
       image.chromaGreenPrimary( &x, &y );
-      if ( x != 0.3000 || y != 0.6000 )
+      if ( x != 0.3000f || y != 0.6000f )
        {
          ++failures;
          cout << "Line: " << __LINE__
@@ -401,7 +401,7 @@ int main( int /*argc*/, char ** argv)
       // Test default setting
       double x, y;
       image.chromaRedPrimary( &x, &y );
-      if ( x != 0.6400 || y != 0.3300 )
+      if ( x != 0.6400f || y != 0.3300f )
        {
          ++failures;
          cout << "Line: " << __LINE__
@@ -426,7 +426,7 @@ int main( int /*argc*/, char ** argv)
       // Test default setting
       double x, y;
       image.chromaWhitePoint( &x, &y );
-      if ( x != 0.3127 || y != 0.3290 )
+      if ( x != 0.3127f || y != 0.3290f )
        {
          ++failures;
          cout << "Line: " << __LINE__
@@ -773,7 +773,7 @@ int main( int /*argc*/, char ** argv)
     //
     // gamma
     //
-    if ( image.gamma() != 0.45455 )
+    if ( image.gamma() != 1.0000f/2.2000f )
       {
        ++failures;
        cout << "Line: " << __LINE__