From 4730a921d7933af06f8292e3655d9b06be82b4d7 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Sat, 14 Jan 2023 09:56:46 +0800 Subject: Fix code style --- src/storage/phrase_index.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/storage/phrase_index.cpp') diff --git a/src/storage/phrase_index.cpp b/src/storage/phrase_index.cpp index de864c2..bb98251 100644 --- a/src/storage/phrase_index.cpp +++ b/src/storage/phrase_index.cpp @@ -62,7 +62,7 @@ bool PhraseItem::add_pronunciation(ChewingKey * keys, guint32 delta){ for (int i = 0; i < npron; ++i) { char * chewing_begin = buf_begin + offset + i * (phrase_length * sizeof(ChewingKey) + sizeof(guint32)); - + guint32 * pfreq = (guint32 *)(chewing_begin + phrase_length * sizeof(ChewingKey)); guint32 freq = UnalignedMemory::load(pfreq); @@ -121,7 +121,7 @@ void PhraseItem::increase_pronunciation_possibility(ChewingKey * keys, for (int i = 0; i < npron; ++i) { char * chewing_begin = buf_begin + offset + i * (phrase_length * sizeof(ChewingKey) + sizeof(guint32)); - + guint32 * pfreq = (guint32 *)(chewing_begin + phrase_length * sizeof(ChewingKey)); guint32 freq = UnalignedMemory::load(pfreq); -- cgit