mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +03:00
0023369: MSVC++ warnings issued during compilation for 64bits, Materials.cxx
Replaced 'Standard_Integer' with 'Standard_Size' to avoid compiler warning.
This commit is contained in:
@@ -44,7 +44,7 @@ void DictionaryOfDefinitions(Handle(Materials_MaterialDefinition)&);
|
||||
|
||||
void Materials::MaterialFile(const Standard_CString afile)
|
||||
{
|
||||
Standard_Integer length = strlen(afile);
|
||||
Standard_Size length = strlen(afile);
|
||||
materialfile = new Standard_Character[length+1];
|
||||
strcpy(materialfile,afile);
|
||||
materialfile[length] = 0;
|
||||
@@ -57,7 +57,7 @@ void Materials::MaterialFile(const Standard_CString afile)
|
||||
|
||||
void Materials::MaterialsFile(const Standard_CString afile)
|
||||
{
|
||||
Standard_Integer length = strlen(afile);
|
||||
Standard_Size length = strlen(afile);
|
||||
materialsfile = new Standard_Character[length+1];
|
||||
strcpy(materialsfile,afile);
|
||||
materialsfile[length] = 0;
|
||||
|
Reference in New Issue
Block a user