Fix direct-casting BOOL / int or BOOL / bool
[scilab.git] / scilab / modules / console / src / cpp / ConsoleIsWaitingForInput.cpp
index 1aca35c..e0a0371 100644 (file)
 #include "ConsoleIsWaitingForInput.hxx"
 /*--------------------------------------------------------------------------*/
 #include "CallScilabBridge.hxx"
-using namespace  org_scilab_modules_gui_bridge;
+using namespace org_scilab_modules_gui_bridge;
 BOOL ConsoleIsWaitingForInput(void)
 {
-       if (getScilabJavaVM())
-       {
-               return CallScilabBridge::isWaitingForInput(getScilabJavaVM());
-       }
-       return FALSE;
+    if (getScilabJavaVM())
+    {
+        return booltoBOOL(CallScilabBridge::isWaitingForInput(getScilabJavaVM()));
+    }
+    return FALSE;
 }
-/*--------------------------------------------------------------------------*/
 
+/*--------------------------------------------------------------------------*/