mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
fix glaring bug in get_magic
This commit is contained in:
parent
42a5124101
commit
90f0e07a5b
1 changed files with 2 additions and 2 deletions
|
@ -651,8 +651,8 @@ imp_get_magic(self, args)
|
|||
return NULL;
|
||||
buf[0] = (MAGIC >> 0) & 0xff;
|
||||
buf[1] = (MAGIC >> 8) & 0xff;
|
||||
buf[3] = (MAGIC >> 16) & 0xff;
|
||||
buf[4] = (MAGIC >> 24) & 0xff;
|
||||
buf[2] = (MAGIC >> 16) & 0xff;
|
||||
buf[3] = (MAGIC >> 24) & 0xff;
|
||||
|
||||
return newsizedstringobject(buf, 4);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue