You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
ccc83d1f6d
Credit to @kencu for fixing build with Clang Fixes: https://trac.macports.org/ticket/42008 Fixes: https://trac.macports.org/ticket/65784
12 lines
595 B
Diff
12 lines
595 B
Diff
--- scintilla/src/LexCaml.cxx.orig 2005-05-27 11:30:23.000000000 +0800
|
|
+++ scintilla/src/LexCaml.cxx 2022-11-03 06:39:05.000000000 +0800
|
|
@@ -275,7 +275,7 @@
|
|
// [try to] interpret as [additional] operator char
|
|
char* o = 0;
|
|
if (iscaml(ch) || isspace(ch) /* ident or whitespace */
|
|
- || ((o = strchr(")]};,\'\"`#", ch)) != 0)/* "termination" chars */
|
|
+ || ((o = (char*)strchr(")]};,\'\"`#", ch)) != 0)/* "termination" chars */
|
|
|| !strchr("!$%&*+-./:<=>?@^|~", ch)/* "operator" chars */) {
|
|
// check for INCLUSIVE termination
|
|
if (o && strchr(")]};,", ch)) {
|