Skip to content

Commit

Permalink
Merge pull request #1253 from PyO3/davidhewitt-patch-8
Browse files Browse the repository at this point in the history
build.rs: use inclusive range syntax
  • Loading branch information
kngwyu authored Oct 20, 2020
2 parents 5a196c3 + b4b5f23 commit c6adde8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ fn configure(interpreter_config: &InterpreterConfig) -> Result<String> {
}

if let Some(minor) = interpreter_config.version.minor {
for i in 6..(minor + 1) {
for i in 6..=minor {
println!("cargo:rustc-cfg=Py_3_{}", i);
flags += format!("CFG_Py_3_{},", i).as_ref();
}
Expand Down

0 comments on commit c6adde8

Please sign in to comment.