Skip to content

Commit 390e27f

Browse files
authored
Use L integer literal for int64_t (#5351)
For `uint64_t` the literal `K` is used, which means `unsigned long long` according to https://docs.python.org/3/c-api/arg.html#numbers. It seems logical and correct to use literal `L` for type `int64_t`, which means `long long` C type. Signed-off-by: Anatoly Myachev <[email protected]>
1 parent 10552c5 commit 390e27f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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",

third_party/nvidia/backend/driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def format_of(ty):
139139
"int8_t": "b",
140140
"int16_t": "h",
141141
"int32_t": "i",
142-
"int64_t": "l",
142+
"int64_t": "L",
143143
"uint8_t": "B",
144144
"uint16_t": "H",
145145
"uint32_t": "I",

0 commit comments

Comments
 (0)