home: hub: 9ficl

Download patch

ref: 28f9d053932e43d1c468a2e9301c89ac1e8f9364
parent: 2170663ab5e98a5572150cb7184dc19810e2f1ab
author: asau <asau@ficl.sf.net>
date: Mon Sep 13 13:40:51 CDT 2010

Use proper integer type.

--- a/word.c
+++ b/word.c
@@ -30,13 +30,13 @@
 ficlWordKind ficlWordClassify(ficlWord *word)
 {
     ficlPrimitive code;
-    int i;
+    ficlInstruction i;
 	ficlWordKind iType;
 
 	if ( (((ficlInstruction)word) > ficlInstructionInvalid)
 		&& (((ficlInstruction)word) < ficlInstructionLast) )
 		{
-		i = (int)word;
+		i = (ficlInstruction)word;
 		iType = FICL_WORDKIND_INSTRUCTION;
 		goto IS_INSTRUCTION;
 		}
@@ -45,7 +45,7 @@
 
 	if ((ficlInstruction)code < ficlInstructionLast)
 		{
-		i = (int)code;
+		i = (ficlInstruction)code;
 		iType = FICL_WORDKIND_INSTRUCTION_WORD;
 		goto IS_INSTRUCTION;
 		}