Merge pull request #1253 from PyO3/davidhewitt-patch-8

build.rs: use inclusive range syntax
This commit is contained in:
Yuji Kanagawa 2020-10-20 19:07:18 +09:00 committed by GitHub
commit c6adde8ad5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}