mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[PyTorch][aarch64] Cast to signed char to fix aarch64 build (#165021)
Summary:
Initial fix: D39198776
Reverted by clang-tidy bot: D83948172
Test Plan:
Can now build on aarch64
{P1983767795}
Reviewed By: bigning
Differential Revision: D84203406
Pull Request resolved: https://github.com/pytorch/pytorch/pull/165021
Approved by: https://github.com/cyyever, https://github.com/Skylion007
This commit is contained in:
committed by
PyTorch MergeBot
parent
496adf9f9c
commit
e93981c243
@ -53,7 +53,8 @@ enum class PickleOpCode : char {
|
|||||||
BINFLOAT = 'G',
|
BINFLOAT = 'G',
|
||||||
|
|
||||||
// Protocol 2
|
// Protocol 2
|
||||||
PROTO = '\x80',
|
// NOLINTNEXTLINE(readability-redundant-inline-specifier)
|
||||||
|
PROTO = char('\x80'),
|
||||||
NEWOBJ = '\x81',
|
NEWOBJ = '\x81',
|
||||||
EXT1 = '\x82',
|
EXT1 = '\x82',
|
||||||
EXT2 = '\x83',
|
EXT2 = '\x83',
|
||||||
@ -71,7 +72,8 @@ enum class PickleOpCode : char {
|
|||||||
SHORT_BINBYTES = 'C',
|
SHORT_BINBYTES = 'C',
|
||||||
|
|
||||||
// Protocol 4
|
// Protocol 4
|
||||||
SHORT_BINUNICODE = '\x8c',
|
// NOLINTNEXTLINE(readability-redundant-inline-specifier)
|
||||||
|
SHORT_BINUNICODE = char('\x8c'),
|
||||||
BINUNICODE8 = '\x8d',
|
BINUNICODE8 = '\x8d',
|
||||||
BINBYTES8 = '\x8e',
|
BINBYTES8 = '\x8e',
|
||||||
EMPTY_SET = '\x8f',
|
EMPTY_SET = '\x8f',
|
||||||
|
|||||||
Reference in New Issue
Block a user