From 6444f4b22624d1f2c51ec71041a22eb025a03416 Mon Sep 17 00:00:00 2001 From: byronhe Date: Mon, 29 Apr 2019 12:18:03 +0800 Subject: [PATCH] fix compile warning --- include/cppjieba/Unicode.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cppjieba/Unicode.hpp b/include/cppjieba/Unicode.hpp index b064c4a..7f06456 100644 --- a/include/cppjieba/Unicode.hpp +++ b/include/cppjieba/Unicode.hpp @@ -38,10 +38,10 @@ struct RuneStr { uint32_t len; uint32_t unicode_offset; uint32_t unicode_length; - RuneStr(): rune(0), offset(0), len(0) { + RuneStr(): rune(0), offset(0), len(0), unicode_offset(0), unicode_length(0) { } RuneStr(Rune r, uint32_t o, uint32_t l) - : rune(r), offset(o), len(l) { + : rune(r), offset(o), len(l), unicode_offset(0), unicode_length(0) { } RuneStr(Rune r, uint32_t o, uint32_t l, uint32_t unicode_offset, uint32_t unicode_length) : rune(r), offset(o), len(l), unicode_offset(unicode_offset), unicode_length(unicode_length) {