summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua.stx6
1 files changed, 3 insertions, 3 deletions
diff --git a/lua.stx b/lua.stx
index dfa85990..a3660736 100644
--- a/lua.stx
+++ b/lua.stx
@@ -1,6 +1,6 @@
1%{ 1%{
2 2
3char *rcs_luastx = "$Id: lua.stx,v 1.1 1993/12/17 18:53:07 celes Exp roberto $"; 3char *rcs_luastx = "$Id: lua.stx,v 1.2 1993/12/22 21:19:23 roberto Exp roberto $";
4 4
5#include <stdio.h> 5#include <stdio.h>
6#include <stdlib.h> 6#include <stdlib.h>
@@ -111,8 +111,8 @@ static void align_n (unsigned size)
111} 111}
112 112
113static void code_number (float f) 113static void code_number (float f)
114{ int i = f; 114{ Word i = (Word)f;
115 if (f == i) /* f has an integer value */ 115 if (f == (float)i) /* f has an (short) integer value */
116 { 116 {
117 if (i <= 2) code_byte(PUSH0 + i); 117 if (i <= 2) code_byte(PUSH0 + i);
118 else if (i <= 255) 118 else if (i <= 255)