Skip to content

Commit 982d814

Browse files
laurynas-biveinisHerman Lee
authored andcommitted
Explicitly specify char signedness for the underlying enum type (facebook#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: facebook#1313 Differential Revision: D46285396
1 parent d82966d commit 982d814

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
@@ -793,7 +793,7 @@ static const std::string binlog_server_finish_err_msg =
793793
"The binlog server has finished sending all available binlogs from the "
794794
"HDFS and has no more binlogs to send.";
795795

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

0 commit comments

Comments
 (0)