Skip to content

Commit 74db036

Browse files
authored
Update integer literals for PyArg_ParseTuple (#2938)
This is a test pull request before upstreaming. The changes are based on https://docs.python.org/3/c-api/arg.html#numbers and https://en.cppreference.com/w/c/language/arithmetic_types --------- Signed-off-by: Anatoly Myachev <[email protected]>
1 parent ad950e8 commit 74db036

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

benchmarks/triton_kernels_benchmark/benchmark_driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def format_of(ty):
133133
"int8_t": "b",
134134
"int16_t": "h",
135135
"int32_t": "i",
136-
"int64_t": "l",
136+
"int64_t": "L",
137137
"uint8_t": "B",
138138
"uint16_t": "H",
139139
"uint32_t": "I",

third_party/amd/backend/driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def format_of(ty):
220220
"int8_t": "b",
221221
"int16_t": "h",
222222
"int32_t": "i",
223-
"int64_t": "l",
223+
"int64_t": "L",
224224
"uint8_t": "B",
225225
"uint16_t": "H",
226226
"uint32_t": "I",

0 commit comments

Comments
 (0)