fix(api): lean_ios_is_std returned incorrect result

This commit is contained in:
Joe Hendrix 2015-08-30 22:56:00 -07:00 committed by Leonardo de Moura
parent 91dc9c7bd9
commit 79b77b1011

View file

@ -37,7 +37,7 @@ void lean_ios_del(lean_ios ios) {
lean_bool lean_ios_is_std(lean_ios ios) {
if (!ios)
return lean_false;
return dynamic_cast<string_output_channel*>(&to_io_state_ref(ios).get_regular_channel()) != nullptr;
return dynamic_cast<string_output_channel*>(&to_io_state_ref(ios).get_regular_channel()) == nullptr;
}
lean_bool lean_ios_set_options(lean_ios ios, lean_options o, lean_exception * ex) {