spa-pod: respect the SPA size for long and int APIs

Fixes some issues for 32bit architectures
This commit is contained in:
Julian Bouzas
2021-05-12 11:23:48 -04:00
parent e1faf3f095
commit 419af5a228
4 changed files with 35 additions and 35 deletions

View File

@@ -945,7 +945,7 @@ push_luapod (lua_State *L, WpSpaPod *pod, WpSpaIdValue field_idval)
/* Long */
else if (wp_spa_pod_is_long (pod)) {
glong value = 0;
gint64 value = 0;
wp_spa_pod_get_long (pod, &value);
lua_pushinteger (L, value);
}