Skip to content

Commit

Permalink
Use L integer literal for int64_t (#5351)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
anmyachev authored Dec 5, 2024
1 parent 10552c5 commit 390e27f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion third_party/amd/backend/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def format_of(ty):
"int8_t": "b",
"int16_t": "h",
"int32_t": "i",
"int64_t": "l",
"int64_t": "L",
"uint8_t": "B",
"uint16_t": "H",
"uint32_t": "I",
Expand Down
2 changes: 1 addition & 1 deletion third_party/nvidia/backend/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def format_of(ty):
"int8_t": "b",
"int16_t": "h",
"int32_t": "i",
"int64_t": "l",
"int64_t": "L",
"uint8_t": "B",
"uint16_t": "H",
"uint32_t": "I",
Expand Down

0 comments on commit 390e27f

Please sign in to comment.