0023369: MSVC++ warnings issued during compilation for 64bits, Materials.cxx
authorPawel <pawel-kowalski@wp.pl>
Tue, 7 Aug 2012 09:07:28 +0000 (11:07 +0200)
committerbugmaster <bugmaster@pencascade.com>
Mon, 20 Aug 2012 09:18:41 +0000 (13:18 +0400)
Replaced 'Standard_Integer' with 'Standard_Size' to avoid compiler warning.

src/Materials/Materials.cxx

index 2cb776d..64d4300 100755 (executable)
@@ -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;