mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0024186: Eliminate remaining compiler warnings in MSVC++ 2010 64 bit with warning level 4
Eliminated some warnings of type C4267 (conversion from Type1 to Type2: possible loss of data); size_t to int explicit casts added. Fixed warning C4267 and 4244 in OSD* files Change in OSD_FileNode and OSD_File reverted since different handle types are needed on Unix and Windows
This commit is contained in:
@@ -53,7 +53,7 @@ static Standard_Real cnvreal;
|
||||
static int intstr(Standard_Integer V,Standard_CString F)
|
||||
{
|
||||
sprintf(cnvbuf,F,V);
|
||||
return strlen(cnvbuf);
|
||||
return (int)strlen(cnvbuf);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
@@ -62,7 +62,7 @@ static int intstr(Standard_Integer V,Standard_CString F)
|
||||
static int realstr(Standard_Real V, Standard_CString F)
|
||||
{
|
||||
sprintf(cnvbuf,F,V);
|
||||
return strlen(cnvbuf);
|
||||
return (int)strlen(cnvbuf);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user