Explorar o código

Remove const qualifier

mingodad %!s(int64=5) %!d(string=hai) anos
pai
achega
fa3df77041
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      SquiLu-ext/sq_blosc.cpp

+ 3 - 3
SquiLu-ext/sq_blosc.cpp

@@ -104,7 +104,7 @@ static SQRESULT sq_blosc_compcode_to_compname(HSQUIRRELVM v)
 {
 {
     SQ_FUNC_VARS_NO_TOP(v);
     SQ_FUNC_VARS_NO_TOP(v);
     SQ_GET_INTEGER(v, 2, compcode);
     SQ_GET_INTEGER(v, 2, compcode);
-    const char *compname;
+    char *compname;
     int rc = blosc_compcode_to_compname(compcode, &compname);
     int rc = blosc_compcode_to_compname(compcode, &compname);
     if(rc > -1) sq_pushstring(v, compname, -1);
     if(rc > -1) sq_pushstring(v, compname, -1);
     else sq_pushnull(v);
     else sq_pushnull(v);
@@ -240,8 +240,8 @@ static SQRESULT sq_blosc_getitem(HSQUIRRELVM v)
 #ifdef __cplusplus
 #ifdef __cplusplus
 extern "C" {
 extern "C" {
 #endif
 #endif
-#define INT_CONST(v,num) 	sq_pushstring(v,_SC(#num),-1);sq_pushinteger(v,num);sq_newslot(v,-3,SQTrue);
-#define STR_CONST(v,str) 	sq_pushstring(v,_SC(#str),-1);sq_pushstring(v,str, -1);sq_newslot(v,-3,SQTrue);
+#define INT_CONST(v,num) 	sq_pushstring(v,_SC(#num),-1);sq_pushinteger(v,num);sq_newslot(v,-3,SQTrue);
+#define STR_CONST(v,str) 	sq_pushstring(v,_SC(#str),-1);sq_pushstring(v,str, -1);sq_newslot(v,-3,SQTrue);
 
 
 
 
     SQRESULT sqext_register_sq_blosc(HSQUIRRELVM v)
     SQRESULT sqext_register_sq_blosc(HSQUIRRELVM v)