X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fstrings%2Fregex.cpp;h=832cd85b110ac81d245af918375ddd24256727ef;hp=27361b038b168071cabd98aa45a37e37fb27d9cc;hb=31cc8f0c6e874e2417e76eda50af34fd17bcd90c;hpb=31ab69904294bcbc0f38e4d401fcca620f7c6f61 diff --git a/source/strings/regex.cpp b/source/strings/regex.cpp index 27361b0..832cd85 100644 --- a/source/strings/regex.cpp +++ b/source/strings/regex.cpp @@ -143,7 +143,7 @@ Regex::Code Regex::compile(const string &expr, string::const_iterator &iter, uns result += atom; } result += ND_JUMP; - write_int(-(atom.size()+jump_size), result); + write_int(-static_cast(atom.size()+jump_size), result); } else if(repeat_max>repeat_min) {