Changeset: 8d65554279a2 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8d65554279a2
Modified Files:
        geom/monetdb5/geom.mx
Branch: Apr2011
Log Message:

Simplify code.


diffs (20 lines):

diff --git a/geom/monetdb5/geom.mx b/geom/monetdb5/geom.mx
--- a/geom/monetdb5/geom.mx
+++ b/geom/monetdb5/geom.mx
@@ -1129,13 +1129,11 @@
        GEOSGeom_destroy(geosGeometry);
 
 #if @6
-       if (*out != @5)
-#else
-       if (1 == 1) /* trick compiler for the throw after this return */
+       if (*out == @5)
+               throw(MAL, "geom.@1", "@3 failed");
 #endif
-               return MAL_SUCCEED;
+       return MAL_SUCCEED;
 
-       throw(MAL, "geom.@1", "@3 failed");
 }
 @c
 @:basic(Dimension,int,GEOSGeom_getDimensions,,0,1)@
_______________________________________________
Checkin-list mailing list
Checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to