]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add comments
authorRaymond Hettinger <python@rcn.com>
Thu, 20 Dec 2007 01:25:05 +0000 (01:25 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 20 Dec 2007 01:25:05 +0000 (01:25 +0000)
Python/compile.c

index 373440e2172c7d6c484283b6e37c36f851c818aa..c77091ea25a0b695fe12b528f70be79f7444bb36 100644 (file)
@@ -3439,10 +3439,10 @@ static int
 instrsize(struct instr *instr)
 {
        if (!instr->i_hasarg)
-               return 1;
+               return 1;       /* 1 byte for the opcode*/
        if (instr->i_oparg > 0xffff)
-               return 6;
-       return 3;
+               return 6;       /* 1 (opcode) + 1 (EXTENDED_ARG opcode) + 2 (oparg) + 2(oparg extended) */
+       return 3;               /* 1 (opcode) + 2 (oparg) */
 }
 
 static int