Skip to content

Commit 06be6b9

Browse files
Explicitly specify char signedness for the underlying enum type (#1313)
Summary: A plain 'char' without 'signed' or 'unsigned' may default to either one, depending on the platform. On x86_64 Linux it is signed, while on ARM Linux it is unsigned, resulting in a build error. Fix by explicitly marking it signed. Squash with 295ba21 Pull Request resolved: #1313 Differential Revision: D46285396 fbshipit-source-id: 6dbd222
1 parent 9f101f0 commit 06be6b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/mysqlbinlog.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ static const std::string binlog_server_finish_err_msg =
792792
"The binlog server has finished sending all available binlogs from the "
793793
"HDFS and has no more binlogs to send.";
794794

795-
enum class Check_database_decision : char {
795+
enum class Check_database_decision {
796796
EMPTY_EVENT_DATABASE = 2,
797797
CHANGED = 1,
798798
OK = 0,

0 commit comments

Comments
 (0)