diff --git a/src/api/ios.cpp b/src/api/ios.cpp index 76a7c8d8a..294268b64 100644 --- a/src/api/ios.cpp +++ b/src/api/ios.cpp @@ -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(&to_io_state_ref(ios).get_regular_channel()) != nullptr; + return dynamic_cast(&to_io_state_ref(ios).get_regular_channel()) == nullptr; } lean_bool lean_ios_set_options(lean_ios ios, lean_options o, lean_exception * ex) {