summaryrefslogtreecommitdiff
path: root/src/utils/stringutils.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-08 22:48:01 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-08 22:48:01 +0300
commitcd0de3bd2668294ab3174d3b5f032fefc25fa0e8 (patch)
tree54942df2cad49260ae466c23fc2af4ec64c03dfb /src/utils/stringutils.cpp
parent454508376039429ad292de69cd491badda798062 (diff)
downloadplus-cd0de3bd2668294ab3174d3b5f032fefc25fa0e8.tar.gz
plus-cd0de3bd2668294ab3174d3b5f032fefc25fa0e8.tar.bz2
plus-cd0de3bd2668294ab3174d3b5f032fefc25fa0e8.tar.xz
plus-cd0de3bd2668294ab3174d3b5f032fefc25fa0e8.zip
Fix code style in utils.
Diffstat (limited to 'src/utils/stringutils.cpp')
-rw-r--r--src/utils/stringutils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp
index cacb3befd..a5435f3f9 100644
--- a/src/utils/stringutils.cpp
+++ b/src/utils/stringutils.cpp
@@ -32,7 +32,7 @@
#include "debug.h"
-static int UTF8_MAX_SIZE = 10;
+static size_t UTF8_MAX_SIZE = 10;
std::string &trim(std::string &str)
{
@@ -92,7 +92,7 @@ std::string strprintf(const char *const format, ...)
char buf[257];
va_list(args);
va_start(args, format);
- int nb = vsnprintf(buf, 256, format, args);
+ size_t nb = vsnprintf(buf, 256, format, args);
buf[256] = 0;
va_end(args);
if (nb < 256)