summaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/cuda.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/dependencies/cuda.py')
-rw-r--r--mesonbuild/dependencies/cuda.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/dependencies/cuda.py b/mesonbuild/dependencies/cuda.py
index af0ae4b1f..e16808b6a 100644
--- a/mesonbuild/dependencies/cuda.py
+++ b/mesonbuild/dependencies/cuda.py
@@ -195,8 +195,8 @@ class CudaDependency(SystemDependency):
except ValueError:
continue
# use // for floor instead of / which produces a float
- major = vers_int // 1000 # type: int
- minor = (vers_int - major * 1000) // 10 # type: int
+ major = vers_int // 1000
+ minor = (vers_int - major * 1000) // 10
return f'{major}.{minor}'
return None