mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0026547: Configuration - fix compilation errors on VS2015
Interface_STAT.cxx - rename local variable 'stat' to 'myStat' to avoid name collision. OSD_FileNode.cxx - pass correct argument to va_start(). STEPConstruct_AP203Context::DefaultDateAndTime() - use _get_timezone() instead of global variable timezone on msvc. Graphic3d_ArrayOfPrimitives::VertexColor() - fix reinterpret_cast() argument. Small correction: OCC26481-linesarc.brep is equal to bug26296_linesarc.brep
This commit is contained in:
@@ -288,7 +288,7 @@ inline void Graphic3d_ArrayOfPrimitives::VertexColor (const Standard_Integer the
|
||||
}
|
||||
Standard_Integer aColorInt = 0;
|
||||
VertexColor (theIndex, aColorInt);
|
||||
const Graphic3d_Vec4ub& aColor = *reinterpret_cast<const Graphic3d_Vec4ub* >(aColorInt);
|
||||
const Graphic3d_Vec4ub& aColor = *reinterpret_cast<const Graphic3d_Vec4ub* >(&aColorInt);
|
||||
theR = Standard_Real(aColor.r()) / 255.0;
|
||||
theG = Standard_Real(aColor.g()) / 255.0;
|
||||
theB = Standard_Real(aColor.b()) / 255.0;
|
||||
|
Reference in New Issue
Block a user