From a5e5a0915ebe50940d3fe29cf488b2d4057a50e4 Mon Sep 17 00:00:00 2001 From: hns Date: Mon, 16 Jul 2007 08:03:03 +0000 Subject: [PATCH] * Allow float to boolean conversion. --- src/helma/objectmodel/db/Property.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helma/objectmodel/db/Property.java b/src/helma/objectmodel/db/Property.java index cdf073da..7550e329 100644 --- a/src/helma/objectmodel/db/Property.java +++ b/src/helma/objectmodel/db/Property.java @@ -455,7 +455,7 @@ public final class Property implements IProperty, Serializable, Cloneable, Compa return ((Boolean) value).booleanValue(); } - if (type == INTEGER) { + if (type == INTEGER || type == FLOAT) { return !(0 == getIntegerValue()); }