diff options
author | Peng Wu <alexepico@gmail.com> | 2023-01-14 09:56:46 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2023-01-14 09:56:46 +0800 |
commit | 4730a921d7933af06f8292e3655d9b06be82b4d7 (patch) | |
tree | affabfd2c27bd8922a10914c25b6658e2796338e /src/storage/phrase_index.cpp | |
parent | abf1963123fae857fe4d845ddd9ae17b84b9c201 (diff) | |
download | libpinyin-4730a921d7933af06f8292e3655d9b06be82b4d7.tar.gz libpinyin-4730a921d7933af06f8292e3655d9b06be82b4d7.tar.xz libpinyin-4730a921d7933af06f8292e3655d9b06be82b4d7.zip |
Fix code style
Diffstat (limited to 'src/storage/phrase_index.cpp')
-rw-r--r-- | src/storage/phrase_index.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<guint32>::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<guint32>::load(pfreq); |