Sfoglia il codice sorgente

small fix in sq_getstringandsize

albertodemichelis 9 anni fa
parent
commit
f441f7f99d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      squirrel/sqapi.cpp

+ 1 - 1
squirrel/sqapi.cpp

@@ -685,7 +685,7 @@ SQRESULT sq_getstringandsize(HSQUIRRELVM v,SQInteger idx,const SQChar **c,SQInte
     SQObjectPtr *o = NULL;
     _GETSAFE_OBJ(v, idx, OT_STRING,o);
     *c = _stringval(*o);
-    *size = _stringlen(*o);
+    *size = _string(*o)->_len;
     return SQ_OK;
 }