FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.8] bpo-40052: Fix alignment issue in PyVectorcall_Function() (GH-23999) by encukou · Pull Request #24120 · python/cpython · GitHub

Repository navigation

[3.8] bpo-40052: Fix alignment issue in PyVectorcall_Function() (GH-23999) - #24120

Merged
encukou merged 1 commit into
python:3.8from
encukou:backport-056c082-3.8
Jan 12, 2021
Merged

encukou merged 1 commit into
python:3.8from
encukou:backport-056c082-3.8

Conversation

encukou commented Jan 5, 2021 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member
In file included from /usr/include/python3.8/Python.h:147:
In file included from /usr/include/python3.8/abstract.h:837:
/usr/include/python3.8/cpython/abstract.h:91:11: error: cast from 'char *' to 'vectorcallfunc *'
(aka 'struct _object *(**)(struct _object *, struct _object *const *, unsigned long, struct _object *)')
increases required alignment from 1 to 8 [-Werror,-Wcast-align]

    ptr = (vectorcallfunc*)(((char *)callable) + offset);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Co-authored-by: Petr Viktorin encukou@gmail.com
Co-Authored-By: Andreas Schneider asn@cryptomilk.org
Co-Authored-By: Antoine Pitrou antoine@python.org.
(cherry picked from commit 056c082)

https://bugs.python.org/issue40052

…onGH-23999)

```
In file included from /usr/include/python3.8/Python.h:147:
In file included from /usr/include/python3.8/abstract.h:837:
/usr/include/python3.8/cpython/abstract.h:91:11: error: cast from 'char *' to 'vectorcallfunc *'
(aka 'struct _object *(**)(struct _object *, struct _object *const *, unsigned long, struct _object *)')
increases required alignment from 1 to 8 [-Werror,-Wcast-align]

    ptr = (vectorcallfunc*)(((char *)callable) + offset);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```
Co-Authored-By: Andreas Schneider <asn@cryptomilk.org>
Co-Authored-By: Antoine Pitrou <antoine@python.org>.
(cherry picked from commit 056c082)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL