There is a small bug in the embryo floating point support:
native printf(format[], ...);
main()
{
new Float:a;
new i;
a = 5.5;
i = 3;
if (a < i) {
printf("%f < %i!\n", a, i);
} else {
printf("%f > %i\n", a, i);
}
}
fails to compile - the fix is attached.
--
John Slaten <[EMAIL PROTECTED]>
Index: include/default.inc
--- include/default.inc 9 Dec 2004 02:46:32 -0000 1.4
+++ include/default.inc 25 Mar 2005 20:13:41 -0000
@@ -193,7 +193,7 @@
stock bool:operator<(Float:oper1, Float:oper2)
return float_cmp(oper1, oper2) < 0;
stock bool:operator<(Float:oper1, oper2)
- return float_cmp(oper1, float_(oper2)) < 0;
+ return float_cmp(oper1, float(oper2)) < 0;
stock bool:operator<(oper1, Float:oper2)
return float_cmp(float(oper1), oper2) < 0;
stock bool:operator<=(Float:oper1, Float:oper2)