Commit 90f0e07a authored by Guido van Rossum's avatar Guido van Rossum

fix glaring bug in get_magic

parent 42a51241
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment