diff core/src/luan/LuanBit.java @ 443:bf5e62a9090c

remove toBoolean() and to_boolean()
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 04 May 2015 14:55:51 -0600
parents 93e6e67768d7
children bbad2d06f728
line wrap: on
line diff
--- a/core/src/luan/LuanBit.java	Mon May 04 13:49:12 2015 -0600
+++ b/core/src/luan/LuanBit.java	Mon May 04 14:55:51 2015 -0600
@@ -133,7 +133,7 @@
 		}
 		LuanFunction fn = getBinHandler("__lt",o1,o2);
 		if( fn != null )
-			return Luan.toBoolean( Luan.first(call(fn,"__lt",new Object[]{o1,o2})) );
+			return checkBoolean( Luan.first(call(fn,"__lt",new Object[]{o1,o2})) );
 		throw exception( "attempt to compare " + Luan.type(o1) + " with " + Luan.type(o2) );
 	}