texmacs-dev
[Top][All Lists]
Advanced

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

Re: [Texmacs-dev] fail to compile on macos


From: Gubinelli Massimiliano
Subject: Re: [Texmacs-dev] fail to compile on macos
Date: Fri, 17 Dec 2010 10:14:18 +0100

Hi,



On 17 déc. 10, at 05:43, Zou Hu wrote:

Hi all, with revision 4043, I failed to compile texmacs code on MacOS. The error message was as follows:

./Typeset/Line/line_breaker.cpp:25: error: integer constant is too large for ‘long’ type
./Typeset/Line/line_breaker.cpp:267: error: integer constant is too large for ‘long’ type
./Typeset/Line/line_breaker.cpp:423: error: integer constant is too large for ‘long’ type



For the moment you can just apply this patch.



Index: src/Typeset/Line/line_breaker.cpp
===================================================================
--- src/Typeset/Line/line_breaker.cpp (revision 4041)
+++ src/Typeset/Line/line_breaker.cpp (working copy)
@@ -22,7 +22,7 @@
  int  pen;
  PEN  pen_spc;

-  lb_info_rep (): prev (), pen (HYPH_INVALID), pen_spc ((PEN) 1000000000000) {}
+  lb_info_rep (): prev (), pen (HYPH_INVALID), pen_spc ((PEN) 1000000000000LL) {}
};

struct lb_info {
@@ -264,7 +264,7 @@
      ((pen == cur->pen) && (pen_spc < cur->pen_spc))) {
    cur->prev   = old_pos;
    cur->pen    = pen;
-    cur->pen_spc= min (pen_spc, (PEN) 1000000000000);
+    cur->pen_spc= min (pen_spc, (PEN) 1000000000000LL);
    //cout << "  Better\n";
  }
}
@@ -420,7 +420,7 @@
    for (i=start; i<end; i++)
      process (path (i));

-  test_better (path (end), path (start), HYPH_INVALID, (PEN) 999999999999);
+  test_better (path (end), path (start), HYPH_INVALID, (PEN) 999999999999LL);

  array<path> ap (0);
  get_breaks (ap, path (end));

reply via email to

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