summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2023-02-23 21:46:59 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2023-02-23 21:55:57 +0100
commit3dce1d6b1885f326c55aed9e1d401ac79801396a (patch)
tree4b5db35a9d8499972854b6e10c6aececf29b218d
parent6a18579ea02add0fdd84eaa116e786376d5c2e2f (diff)
downloadgjs-3dce1d6b1885f326c55aed9e1d401ac79801396a.tar.gz
value: Use a signed char to old g_value_get_schar result
char and signed char are the same in most of platforms, but that's not always true such as in arm64, s390x, ppc64el and others. See: https://buildd.debian.org/status/fetch.php?pkg=gjs&arch=arm64&ver=1.75.2-1&stamp=1676991213&raw=0 Closes: #529
-rw-r--r--gi/value.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gi/value.cpp b/gi/value.cpp
index 2e2f49aa..651c21ad 100644
--- a/gi/value.cpp
+++ b/gi/value.cpp
@@ -881,7 +881,7 @@ gjs_value_from_g_value_internal(JSContext *context,
return false;
}
} else if (gtype == G_TYPE_CHAR) {
- char v;
+ signed char v;
v = g_value_get_schar(gvalue);
value_p.setInt32(v);
} else if (gtype == G_TYPE_UCHAR) {