changeset 330:e851da7ec146 src

static-ize a const; patch by Diego Petten
author nicodvb
date Sat, 05 Jan 2008 09:22:45 +0000
parents 071927ab5357
children 3ddf1838e3b1
files vm/decoder.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vm/decoder.c	Mon Dec 31 18:17:34 2007 +0000
+++ b/vm/decoder.c	Sat Jan 05 09:22:45 2008 +0000
@@ -417,7 +417,7 @@
    For the swap case the contents of reg is stored in reg2.
 */
 static void eval_set_op(command_t* command, int32_t op, int32_t reg, int32_t reg2, int32_t data) {
-  const int32_t shortmax = 0xffff;
+  static const int32_t shortmax = 0xffff;
   int32_t     tmp; 
   switch(op) {
     case 1: