mojoshader.c
branchtrunk
changeset 84 a49c5e1948d3
parent 83 ce46250e553d
child 85 c6d6f4d0c596
--- a/mojoshader.c	Fri Apr 04 07:20:59 2008 -0400
+++ b/mojoshader.c	Fri Apr 04 07:47:32 2008 -0400
@@ -583,12 +583,12 @@
     } // else
 } // reglist_insert
 
-static RegisterList *reglist_exists(RegisterList *prev,
-                                    const RegisterType regtype,
-                                    const int regnum)
+static const RegisterList *reglist_exists(const RegisterList *prev,
+                                          const RegisterType regtype,
+                                          const int regnum)
 {
     const uint32 newval = reg_to_ui32(regtype, regnum);
-    RegisterList *item = prev->next;
+    const RegisterList *item = prev->next;
     while (item != NULL)
     {
         const uint32 val = reg_to_ui32(item->regtype, item->regnum);