fix(api): lean_ios_is_std returned incorrect result
This commit is contained in:
parent
91dc9c7bd9
commit
79b77b1011
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ void lean_ios_del(lean_ios ios) {
|
||||||
lean_bool lean_ios_is_std(lean_ios ios) {
|
lean_bool lean_ios_is_std(lean_ios ios) {
|
||||||
if (!ios)
|
if (!ios)
|
||||||
return lean_false;
|
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) {
|
lean_bool lean_ios_set_options(lean_ios ios, lean_options o, lean_exception * ex) {
|
||||||
|
|
Loading…
Reference in a new issue