View | Details | Raw Unified | Return to bug 116832
Collapse All | Expand All

(-)Makefile (-9 / +1 lines)
Lines 18-32 Link Here
18
USE_SDL=	sdl ttf mixer
18
USE_SDL=	sdl ttf mixer
19
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
19
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
20
20
21
.include <bsd.port.pre.mk>
22
23
.if ${OSVERSION} >= 700042
24
.if ${ARCH} == "amd64" || ${ARCH} == "sparc64"
25
BROKEN=		Does not compile with GCC 4.2
26
.endif
27
.endif
28
29
post-install:
21
post-install:
30
	@${CAT} ${PKGMESSAGE}
22
	@${CAT} ${PKGMESSAGE}
31
23
32
.include <bsd.port.post.mk>
24
.include <bsd.port.mk>
(-)files/patch-formatter.cpp (+31 lines)
Added Link Here
1
diff -urN einstein-2.0.orig/formatter.cpp einstein-2.0/formatter.cpp
2
--- formatter.cpp	2005-08-13 22:40:58.000000000 -0400
3
+++ formatter.cpp	2006-08-15 11:18:28.000000000 -0400
4
@@ -58,7 +58,7 @@
5
             if ((c.type == INT_ARG) || (c.type == STRING_ARG) ||
6
                     (c.type == FLOAT_ARG) || (c.type == DOUBLE_ARG))
7
             {
8
-                int no = (int)c.data;
9
+                long int no = (long int)c.data;
10
                 args[no - 1] = c.type;
11
             }
12
         }
13
@@ -123,7 +123,7 @@
14
 std::wstring Formatter::format(std::vector<ArgValue*> &argValues) const
15
 {
16
     std::wstring s;
17
-    int no;
18
+    long int no;
19
 
20
     for (int i = 0; i < commandsCnt; i++) {
21
         Command *cmd = &commands[i];
22
@@ -135,8 +135,8 @@
23
                 
24
             case STRING_ARG:
25
             case INT_ARG:
26
-                no = (int)cmd->data - 1;
27
-                if (no < (int)argValues.size())
28
+                no = (long int)cmd->data - 1;
29
+                if (no < (long int)argValues.size())
30
                     s += argValues[no]->format(cmd);
31
                 break;

Return to bug 116832