Skip to content

Commit 3c8cc41

Browse files
committed
Fix Win32 build warning
1 parent 92e92fd commit 3c8cc41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src-cpp/rdkafkacpp_int.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,15 @@ class ErrorImpl : public Error {
133133
}
134134

135135
bool is_fatal () const {
136-
return rd_kafka_error_is_fatal(c_error_);
136+
return !!rd_kafka_error_is_fatal(c_error_);
137137
}
138138

139139
bool is_retriable () const {
140-
return rd_kafka_error_is_retriable(c_error_);
140+
return !!rd_kafka_error_is_retriable(c_error_);
141141
}
142142

143143
bool txn_requires_abort () const {
144-
return rd_kafka_error_txn_requires_abort(c_error_);
144+
return !!rd_kafka_error_txn_requires_abort(c_error_);
145145
}
146146

147147
rd_kafka_error_t *c_error_;

0 commit comments

Comments
 (0)