Bug 53171

Summary: examples: fix boolean option parsing
Product: Ytstenut Reporter: Simon McVittie <smcv>
Component: ytstenut-glibAssignee: Simon McVittie <smcv>
Status: RESOLVED FIXED QA Contact: ytstenut
Severity: normal    
Priority: medium CC: olli.salli
Version: unspecifiedKeywords: patch
Hardware: Other   
OS: All   
Whiteboard: review+
i915 platform: i915 features:
Attachments: examples: fix boolean option parsing

Description Simon McVittie 2012-08-06 16:41:49 UTC
Created attachment 65187 [details] [review]
examples: fix boolean option parsing

Under gcc, sizeof(bool) is 1, while sizeof(gboolean) is 4 (on every
platform we care about). This means that passing a bool * to a GLib
function expecting a gboolean * leads to an overflow of 3 bytes.
Comment 1 Olli Salli 2012-08-06 17:56:08 UTC
++
Comment 2 Simon McVittie 2012-08-06 18:38:55 UTC
Thanks, merged

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.