Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 887349 Details for
Bug 1088339
python test failing on 64-bit big endians
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Fix generated code for parsing integers/longs/enums
0001-Fix-generators-for-parsing-of-integer-values.patch (text/plain), 1.50 KB, created by
Simo Sorce
on 2014-04-17 22:22:48 UTC
(
hide
)
Description:
Fix generated code for parsing integers/longs/enums
Filename:
MIME Type:
Creator:
Simo Sorce
Created:
2014-04-17 22:22:48 UTC
Size:
1.50 KB
patch
obsolete
>From 0caa4e7b254b26d418048191aa588c6696a55a4d Mon Sep 17 00:00:00 2001 >From: Simo Sorce <simo@redhat.com> >Date: Thu, 17 Apr 2014 18:10:31 -0400 >Subject: [PATCH] Fix generators for parsing of integer values > >All number types including enums are parse as if they were integers, >this breaks in many ways, long and int are not the same size in all >architectures as well as enum may vary in size depening on compiler, >architecture and optimizations. > >Always pass an actual long to PyArg_ParseTuple() and rely on the a >cast from long to the destination variable type in the following >assignment. > >Signed-off-by: Simo Sorce <simo@redhat.com> >--- > bindings/python/lang.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/bindings/python/lang.py b/bindings/python/lang.py >index f5c9d36ec6bd4550a8edd4ba93e5f4862bd40139..c695518e5a553738f11d614c9ce98953338408b7 100644 >--- a/bindings/python/lang.py >+++ b/bindings/python/lang.py >@@ -770,9 +770,9 @@ register_constants(PyObject *d) > parse_arg = '&value' > print >> fd, ' %s value;' % type > elif is_int(m, self.binding_data): >- parse_format = 'i' >+ parse_format = 'l' > parse_arg = '&value' >- print >> fd, ' %s value;' % type >+ print >> fd, ' long value;' > elif is_glist(m) or is_hashtable(m) or is_xml_node(m) or is_boolean(m): > parse_format = 'O' > print >> fd, ' PyObject *cvt_value;' >-- >1.9.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1088339
:
886895
| 887349 |
887633