]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-117680: Fix msvc warning in instruction_sequence.c (#118326)
authorneonene <53406459+neonene@users.noreply.github.com>
Fri, 26 Apr 2024 16:20:30 +0000 (01:20 +0900)
committerGitHub <noreply@github.com>
Fri, 26 Apr 2024 16:20:30 +0000 (17:20 +0100)
Python/instruction_sequence.c

index 3a254b2c9def4e86d824fed7556006eed39a1caa..a3f85f754d71bb5b6962e6eadbf8bbb44c11aee6 100644 (file)
@@ -20,6 +20,8 @@ typedef _Py_SourceLocation location;
 #define INITIAL_INSTR_SEQUENCE_SIZE 100
 #define INITIAL_INSTR_SEQUENCE_LABELS_MAP_SIZE 10
 
+#include "clinic/instruction_sequence.c.h"
+
 #undef SUCCESS
 #undef ERROR
 #define SUCCESS 0
@@ -172,8 +174,6 @@ class InstructionSequenceType "_PyInstructionSequence *" "&_PyInstructionSequenc
 [clinic start generated code]*/
 /*[clinic end generated code: output=da39a3ee5e6b4b0d input=589963e07480390f]*/
 
-#include "clinic/instruction_sequence.c.h"
-
 static _PyInstructionSequence*
 inst_seq_create(void)
 {