mojoshader_compiler.c
changeset 993 426ab31f27d1
parent 991 8999b4b9eaa6
child 995 7e7826e191f5
--- a/mojoshader_compiler.c	Thu Feb 10 18:52:50 2011 -0500
+++ b/mojoshader_compiler.c	Thu Feb 10 22:20:04 2011 -0500
@@ -2365,11 +2365,12 @@
 
         if (this_match)
         {
-            if (match++ == 0)
+            match++;
+            if (match == 1)
                 best = item;
             else
             {
-                if (match++ == 1)
+                if (match == 2)
                     failf(ctx, "Ambiguous function call to '%s'", sym);
                 // !!! FIXME: list each possible function in a fail() here.
             } // else