Explorar o código

Fixed code style, remove the warning from gcc
issue #69

Avelino %!s(int64=9) %!d(string=hai) anos
pai
achega
36c308bf57
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      squirrel/sqapi.cpp

+ 3 - 1
squirrel/sqapi.cpp

@@ -971,7 +971,9 @@ SQRESULT sq_setdelegate(HSQUIRRELVM v,SQInteger idx)
     switch(type) {
     case OT_TABLE:
         if(type(mt) == OT_TABLE) {
-            if(!_table(self)->SetDelegate(_table(mt))) return sq_throwerror(v, _SC("delagate cycle")); v->Pop();}
+            if(!_table(self)->SetDelegate(_table(mt))) {
+				return sq_throwerror(v, _SC("delagate cycle")); v->Pop();}
+			}
         else if(type(mt)==OT_NULL) {
             _table(self)->SetDelegate(NULL); v->Pop(); }
         else return sq_aux_invalidtype(v,type);