Files
barracuda156 ccc83d1f6d cssed: fix the build
Credit to @kencu for fixing build with Clang
Fixes: https://trac.macports.org/ticket/42008
Fixes: https://trac.macports.org/ticket/65784
2022-11-20 15:33:37 -08:00

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)) {