updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / mcl / gcc4.patch
blob12d38a3bf62a20c4a8cf382529f86e52cf034c17
1 --- mcl-0.53.00/InputLine.cc 2003-09-29 12:37:49.000000000 +0200
2 +++ mcl-0.53.00_fix/InputLine.cc 2009-08-30 00:58:55.000000000 +0200
3 @@ -27,7 +27,7 @@
5 History::History(int _id) : id (_id), current(0) {
6 max_history = config->getOption(opt_histsize);
7 - strings = new (char*)[max_history];
8 + strings = new char*[max_history];
9 timestamps = new time_t[max_history];
11 // Hmm, not sure about this
12 --- mcl-0.53.00/OutputWindow.cc 2003-09-29 13:15:45.000000000 +0200
13 +++ mcl-0.53.00_fix/OutputWindow.cc 2009-08-30 01:29:18.000000000 +0200
14 @@ -229,8 +229,8 @@
15 highlight.len = strlen(s);
17 // Show on the second line rather than under status bar
18 - viewpoint = scrollback >? p-width;
19 - viewpoint = viewpoint <? canvas;
20 + viewpoint = scrollback > p-width ? scrollback : p-width;
21 + viewpoint = viewpoint < canvas ? viewpoint : canvas;
22 status->setf("Found string '%s'", s);
25 --- mcl-0.53.00/plugins/PythonEmbeddedInterpreter.cc 1999-09-20 20:10:33.000000000 +0200
26 +++ mcl-0.53.00_fix/plugins/PythonEmbeddedInterpreter.cc 2009-08-30 01:41:29.000000000 +0200
27 @@ -132,7 +132,7 @@
28 bool PythonEmbeddedInterpreter::run_quietly(const char *file, const char *args,
29 char *result, bool suppress)
31 - char *func = strrchr(file, '/');
32 + char *func = (char*) strrchr(file, '/');
33 char buf[256];
35 if(func) func++;