summaryrefslogtreecommitdiffstats
path: root/src/growbuf.h
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-02-12 20:06:53 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-02-12 20:06:53 (GMT)
commitf6cd1a9f2da30c33b80955c061f5a106ae4fdf42 (patch)
tree2ae8997f4bf6bcf2e3adb0079da828312d6e49f0 /src/growbuf.h
parentdc7729800038933a099f2b1c6409ee5210e248bb (diff)
downloadDoxygen-f6cd1a9f2da30c33b80955c061f5a106ae4fdf42.zip
Doxygen-f6cd1a9f2da30c33b80955c061f5a106ae4fdf42.tar.gz
Doxygen-f6cd1a9f2da30c33b80955c061f5a106ae4fdf42.tar.bz2
Fix compiler warnings on Windows (Visual Studio)
Diffstat (limited to 'src/growbuf.h')
-rw-r--r--src/growbuf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/growbuf.h b/src/growbuf.h
index bf6d74e..2d0d503 100644
--- a/src/growbuf.h
+++ b/src/growbuf.h
@@ -29,7 +29,7 @@ class GrowBuf
void addStr(const char *s) {
if (s)
{
- int l=strlen(s);
+ int l=(int)strlen(s);
if (pos+l>=len) { len+=l+GROW_AMOUNT; str = (char*)realloc(str,len); }
strcpy(&str[pos],s);
pos+=l;
@@ -38,7 +38,7 @@ class GrowBuf
void addStr(const char *s,int n) {
if (s)
{
- int l=strlen(s);
+ int l=(int)strlen(s);
if (n<l) l=n;
if (pos+l>=len) { len+=l+GROW_AMOUNT; str = (char*)realloc(str,len); }
strncpy(&str[pos],s,n);