lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cannot build lilypond 2.6.3 on powerpc


From: Thomas Bushnell BSG
Subject: Re: cannot build lilypond 2.6.3 on powerpc
Date: Sat, 15 Oct 2005 14:47:26 -0700
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)

Thomas Bushnell BSG <address@hidden> writes:

> I'm attempting a fix now.

Done; here is the patch:

--- /home/debian/mftrace-1.1.16/gf2pbm.c        2005-10-15 13:57:58.000000000 
-0700
+++ /home/src/mftrace-1.1.16/gf2pbm.c   2005-10-15 14:23:49.000000000 -0700
@@ -302,7 +302,7 @@
        ubyte   cmnd;
        int     min_m, max_m, min_n, max_n;
        BMUNIT  *cp, *basep, *maxp;
-       char    **basep_cpp = &basep;
+       BMUNIT  **basep_cpp = &basep;
        int     bytes_wide;
        bool    paint_switch;
 #define        White   false
@@ -391,7 +391,7 @@
                case SKIP2:
                case SKIP3:
                  *(basep_cpp) +=
-                   num(GF_file, WIDENINT cmnd - SKIP0) * bytes_wide;
+                   num(GF_file, WIDENINT cmnd - SKIP0) * bytes_wide / sizeof 
(BMUNIT);
                case SKIP0:
                    new_row = true;
                    paint_switch = White;
@@ -414,7 +414,7 @@
            if (new_row) {
 
              *(basep_cpp) +=
-               bytes_wide;
+               bytes_wide / sizeof (BMUNIT);
              if (basep >= maxp || cp >= basep) too_many_bits(ch);
                 cp = basep;
                word_weight = BMBITS;
I've verified that this works completely, producing a nice happy
looking pbm output file.

Thomas

reply via email to

[Prev in Thread] Current Thread [Next in Thread]