warnings
Allan CORNET [Thu, 2 Jul 2009 09:08:27 +0000 (11:08 +0200)]
scilab/modules/core/src/c/api_boolean_sparse.c
scilab/modules/core/src/c/api_list.c
scilab/modules/core/src/c/api_poly.c

index 74a7c48..51678fc 100644 (file)
@@ -147,7 +147,7 @@ int readNamedBooleanSparseMatrix(char* _pstName, int _iNameLen, int* _piRows, in
        int* piNbItemRow        = 0;
        int* piColPos                   = 0;
 
-       getVarAddressFromName(_pstName, _iNameLen, &piAddr);
+       getVarAddressFromName(_pstName, &piAddr);
        getBooleanSparseMatrix(piAddr, _piRows, _piCols, _piNbItem, &piNbItemRow, &piColPos);
 
        if(_piNbItemRow == NULL)
index 014e3db..5564d4c 100644 (file)
@@ -135,7 +135,7 @@ static int createCommonNamedList(char* _pstName, int _iListType, int _iNbItem, i
        int *piAddr                             = NULL;
        int* piEnd                              = NULL;
 
-  C2F(str2name)(_pstName, iVarID, strlen(_pstName));
+  C2F(str2name)(_pstName, iVarID, (unsigned long)strlen(_pstName));
   Top = Top + Nbvars + 1;
 
        iRet = getNewVarAddressFromPosition(Top, &piAddr);
@@ -479,7 +479,7 @@ int createCommomMatrixOfDoubleInNamedList(char* _pstName, int* _piParent, int _i
        int* piEnd                              = NULL;
        int* piChildAddr        = NULL;
 
-  C2F(str2name)(_pstName, iVarID, strlen(_pstName));
+  C2F(str2name)(_pstName, iVarID, (unsigned long)strlen(_pstName));
   Top = Top + Nbvars + 1;
 
        iRet = getNewVarAddressFromPosition(Top, &piAddr);
@@ -612,7 +612,7 @@ int createCommonListInNamedList(char* _pstName, int* _piParent, int _iItemPos, i
        int iRet = 0;
        int iSaveTop = Top;
 
-  C2F(str2name)(_pstName, iVarID, strlen(_pstName));
+  C2F(str2name)(_pstName, iVarID, (unsigned long)strlen(_pstName));
        Top = Top + Nbvars + 1;
 
        iRet = createCommonListInList(Top, _piParent, _iItemPos, _iListType, _iNbItem, _piAddress, 1);
@@ -789,7 +789,7 @@ int createMatrixOfStringInNamedList(char* _pstName, int* _piParent, int _iItemPo
        int* piItemAddr         = NULL;
        int* piEnd                              = NULL;
 
-  C2F(str2name)(_pstName, iVarID, strlen(_pstName));
+  C2F(str2name)(_pstName, iVarID, (unsigned long)strlen(_pstName));
        Top = Top + Nbvars + 1;
 
        iRet = getListItemAddress(_piParent, _iItemPos, &piItemAddr);
@@ -961,7 +961,7 @@ int createMatrixOfBooleanInNamedList(char* _pstName, int* _piParent, int _iItemP
        int* piEnd                              = NULL;
        int* piChildAddr        = NULL;
 
-  C2F(str2name)(_pstName, iVarID, strlen(_pstName));
+  C2F(str2name)(_pstName, iVarID, (unsigned long)strlen(_pstName));
   Top = Top + Nbvars + 1;
 
        iRet = getNewVarAddressFromPosition(Top, &piAddr);
@@ -1137,7 +1137,7 @@ int createCommonMatrixOfPolyInNamedList(char* _pstName, int* _piParent, int _iIt
        int iTotalLen                   = 0;
        int iItemLen                    = 0;
 
-  C2F(str2name)(_pstName, iVarID, strlen(_pstName));
+  C2F(str2name)(_pstName, iVarID, (unsigned long)strlen(_pstName));
   Top = Top + Nbvars + 1;
 
        iRet = getNewVarAddressFromPosition(Top, &piAddr);
@@ -1344,7 +1344,7 @@ int createCommonMatrixOfIntegerInNamedList(char* _pstName, int* _piParent, int _
        int* piEnd                              = NULL;
        int* piChildAddr        = NULL;
 
-  C2F(str2name)(_pstName, iVarID, strlen(_pstName));
+  C2F(str2name)(_pstName, iVarID, (unsigned long)strlen(_pstName));
   Top = Top + Nbvars + 1;
 
        iRet = getNewVarAddressFromPosition(Top, &piAddr);
index e60f80a..92f1d6d 100644 (file)
@@ -227,7 +227,7 @@ int createCommonNamedMatrixOfPoly(char* _pstName, char* _pstVarName, int _iCompl
        int *piAddr                             = NULL;
        int iTotalLen                   = 0;
 
-       C2F(str2name)(_pstName, iVarID, strlen(_pstName));
+       C2F(str2name)(_pstName, iVarID, (unsigned long)strlen(_pstName));
   Top = Top + Nbvars + 1;
 
        iRet = getNewVarAddressFromPosition(Top, &piAddr);