From e44fba0d024883d35ef6bbc90b1f7b6875f72ead Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 15 Jan 2012 21:39:20 +1000 Subject: Updated comment about modulo. --- LuaSL/src/LuaSL_LSL_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'LuaSL') diff --git a/LuaSL/src/LuaSL_LSL_tree.c b/LuaSL/src/LuaSL_LSL_tree.c index 98a03e7..5a082bd 100644 --- a/LuaSL/src/LuaSL_LSL_tree.c +++ b/LuaSL/src/LuaSL_LSL_tree.c @@ -419,7 +419,7 @@ Any binary operation involving a float and an integer implicitly casts the integ A boolean operation deals with TRUE (1) and FALSE (0). Any non zero value is a TRUE (generally sigh). Bitwise operations only apply to integers. The shifts are arithmatic, not logical. Right shifted bits are dropped, left shifts the sign bit. -integer = integer0 % integer1; // Apparently only applies to integers. +integer = integer0 % integer1; // Apparently only applies to integers, but works fine on floats in OS. string = string0 + string1; // Concatenation. list = list0 + list1; // Concatenation. Also works if either is not a list, it's promoted to a list first. list = (list=[]) + list + ["new_item"]; // Voodoo needed for old LSL, works in Mono but not needed, does not work in OS. Works for strings to. -- cgit v1.1