From 1a8b94162da0a9eab88813d6b1928b483b7990eb Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Mon, 30 Aug 2021 22:00:59 +0200 Subject: Fix Windows (VS) compiler warnings in fluid --- fluid/CodeEditor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fluid/CodeEditor.cxx') 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); -- cgit v1.2.3