diff Python/import.c @ 2270:3a658eec1f02 legacy-trunk

fix glaring bug in get_magic
author Guido van Rossum <guido@python.org>
date Mon, 30 Jan 1995 12:53:06 +0000
parents 72e05c61c2fe
children 6263e2fd9398
line wrap: on
line diff
--- a/Python/import.c	Mon Jan 30 12:52:46 1995 +0000
+++ b/Python/import.c	Mon Jan 30 12:53:06 1995 +0000
@@ -651,8 +651,8 @@
 		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);
 }