summaryrefslogtreecommitdiff
path: root/fluid/CodeEditor.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2021-08-30 22:00:59 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2021-08-30 23:45:16 +0200
commit1a8b94162da0a9eab88813d6b1928b483b7990eb (patch)
tree5b46e2e0ef435d32c5e8bf9e6806275434c1d9f4 /fluid/CodeEditor.cxx
parented3ec2d036675601f612bb9f45ad9e9b731699f3 (diff)
Fix Windows (VS) compiler warnings in fluid
Diffstat (limited to 'fluid/CodeEditor.cxx')
-rw-r--r--fluid/CodeEditor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/fluid/CodeEditor.cxx b/fluid/CodeEditor.cxx
index 3d7d47515..a6bfecc48 100644
--- a/fluid/CodeEditor.cxx
+++ b/fluid/CodeEditor.cxx
@@ -2,7 +2,7 @@
// Code editor widget for the Fast Light Tool Kit (FLTK).
// Syntax highlighting rewritten by erco@seriss.com 09/15/20.
//
-// Copyright 1998-2020 by Bill Spitzak and others.
+// Copyright 1998-2021 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -165,7 +165,7 @@ int CodeEditor::auto_indent(int, CodeEditor* e) {
*ptr = '\0';
if (*text) {
// use only a single 'insert' call to avoid redraw issues
- int n = strlen(text);
+ size_t n = strlen(text);
char *b = (char*)malloc(n+2);
*b = '\n';
strcpy(b+1, text);