Return FALSE instead of NULL, avoids a fatal error with clang 15

This commit is contained in:
jca 2023-01-10 13:26:15 +00:00
parent 7b28c2acbb
commit b0c2f3abf6
2 changed files with 13 additions and 1 deletions

View File

@ -3,7 +3,7 @@ COMMENT = library to deal with Japanese kana-to-kanji conversion
V = 1.0.5
DISTNAME = libskk-${V}
EXTRACT_SUFX = .tar.xz
REVISION = 0
REVISION = 1
SHARED_LIBS += skk 0.1 # 0.0

View File

@ -0,0 +1,12 @@
Index: libskk/file-dict.c
--- libskk/file-dict.c.orig
+++ libskk/file-dict.c
@@ -398,7 +398,7 @@ skk_file_dict_read_until (SkkFileDict* self,
_tmp0_ = self->priv->mmap;
_tmp1_ = skk_memory_mapped_file_get_length (_tmp0_);
_tmp2_ = _tmp1_;
- g_return_val_if_fail (((gsize) (*offset)) < _tmp2_, NULL);
+ g_return_val_if_fail (((gsize) (*offset)) < _tmp2_, FALSE);
while (TRUE) {
gint _tmp3_;
gint _tmp4_;