GNOME Bugzilla – Bug 769789
int to GValue conversion silently truncates
Last modified: 2017-04-01 09:12:33 UTC
This came up in bug 769532 ---- from gi.repository import GObject a = GObject.ValueArray() a.append(10**10) # this should raise (or at least warn) print a.get_nth(0) # this prints 10**10 & 2**31-1 instead of 10**10
Created attachment 348766 [details] [review] GValue: add overflow checking for py -> gint; forward marshaling exceptions