shithub: mc

Download patch

ref: 6dcec87d059d72104ca3f0d264bd087e355d3c30
parent: b5d15f7ef62e2b9868cf25bb4f9b59824b81aa92
author: Ori Bernstein <[email protected]>
date: Tue Jul 24 20:26:26 EDT 2012

Regid should be printed as a size_t.

--- a/8/isel.c
+++ b/8/isel.c
@@ -616,7 +616,7 @@
         case Locreg:
             assert(spec == 'r' || spec == 'v' || spec == 'x' || spec == 'u');
             if (l->reg.colour == Rnone)
-                fprintf(fd, "%%P.%ld", l->reg.id);
+                fprintf(fd, "%%P.%zd", l->reg.id);
             else
                 fprintf(fd, "%s", regnames[l->reg.colour]);
             break;