complex ==, != was broken

argh the broken test suite was hiding some nasties
This commit is contained in:
John Cupitt 2012-03-01 14:09:52 +00:00
parent 04b10fb0b8
commit 8344dbb808
2 changed files with 15 additions and 2 deletions

11
TODO
View File

@ -1,6 +1,17 @@
blocking bugs
=============
- try
$ vips list classes
...
VipsForeignLoadJpegFile (jpegload) ...
** VIPS:ERROR:foreign.c:486:vips_foreign_load_summary_class: assertion failed: (!class->get_flags == !class->get_flags_filename)
Aborted
- none!

View File

@ -26,6 +26,8 @@
* - oops, moreconst and moreeqconst were the same
* 4/11/11
* - redone as a class
* 1/2/12
* - complex ==, != were broken
*/
/*
@ -145,8 +147,8 @@ vips_relational_build( VipsObject *object )
g_assert( 0 ); \
}
#define CEQUAL( x1, y1, x2, y2 ) (x1 == y1 && x2 == y2)
#define CNOTEQUAL( x1, y1, x2, y2 ) (x1 != y1 || x2 != y2)
#define CEQUAL( x1, y1, x2, y2 ) (x1 == x2 && y1 == y2)
#define CNOTEQUAL( x1, y1, x2, y2 ) (x1 != x2 || y1 != y2)
#define CLESS( x1, y1, x2, y2 ) (x1 * x1 + y1 * y1 < x2 * x2 + y2 * y2)
#define CLESSEQ( x1, y1, x2, y2 ) (x1 * x1 + y1 * y1 <= x2 * x2 + y2 * y2)
#define CMORE( x1, y1, x2, y2 ) (x1 * x1 + y1 * y1 > x2 * x2 + y2 * y2)