warnings x64
Allan CORNET [Thu, 27 Nov 2008 14:32:50 +0000 (15:32 +0100)]
scilab/modules/completion/src/c/getfilesdictionary.c
scilab/modules/localization/src/c/LanguagePreferences_Windows.c
scilab/modules/shell/src/c/windows/TermConsole.c
scilab/modules/tclsci/src/c/TCL_Command.c

index 177c6ea..828b0b5 100644 (file)
@@ -135,7 +135,7 @@ static char **addPath(char **dictionary, int sizearray, char *path)
        for (i = 0;i < sizearray;i++)
        {
                char *newPath = NULL;
-               int newlength = strlen(dictionary[i]) + strlen(path) + 1;
+               int newlength = (int)(strlen(dictionary[i]) + strlen(path) + 1);
                newPath = (char *)MALLOC(sizeof(char)*(newlength));
                sprintf(newPath,"%s%s",path,dictionary[i]);
                FREE(dictionary[i]);
index 7c2cc74..2678fbe 100644 (file)
@@ -162,7 +162,7 @@ BOOL setLanguagePreferences(void)
                                return FALSE;
                        }
 
-                       if ( RegSetValueEx(hKey, LANGUAGE_ENTRY, 0, REG_SZ, (LPBYTE)LANGUAGE, strlen(LANGUAGE)+1) != ERROR_SUCCESS)
+                       if ( RegSetValueEx(hKey, LANGUAGE_ENTRY, 0, REG_SZ, (LPBYTE)LANGUAGE, (DWORD)(strlen(LANGUAGE)+1)) != ERROR_SUCCESS)
                        {
                                RegCloseKey(hKey);
                                if (keyString) { FREE(keyString); keyString = NULL;}
index e0a9c21..5d0b44c 100644 (file)
@@ -107,7 +107,7 @@ int TerminalPrintf(char *buffer)
        {
                if (buffer[0] != 0)
                {
-                       int len = strlen (buffer);
+                       int len = (int)strlen (buffer);
                        /* UTF-8 coded on 2 chars */
                        char *OEM_string = (char*)MALLOC(sizeof(char)*(2*len)); 
                        if (OEM_string)
index 8def172..7206373 100644 (file)
@@ -334,6 +334,7 @@ int sendTclCommandToSlave(char* command, char* slave)
                }
                evaluateTclCommand();
        }
+       return TCL_OK;
 }