1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0024048: "Basic Runtime Checks" option of VS projects should be equal to "RTC1"

tolreached initialized (src\ChFi3d\ChFi3d_Builder_6.cxx);
LocalTransition initialized in deb case (src\HatchGen\HatchGen_Hatcher.gxx);
vprev initialized (src\Blend\Blend_Walking_3.gxx);
uprev initialized (src\BRepBlend\BRepBlend_SurfRstLineBuilder.cxx);
lxp initialized (src\Interface\Interface_FloatWriter.cxx)
pBuff initialized (src\OSD\OSD_Process.cxx)
aPrefix initialized (src\RWStepBasic\RWStepBasic_RWSiUnitAndPlaneAngleUnit.cxx)
ier initialized AdvApp2Var/AdvApp2Var_ApproxF2var.cxx
FacRevolInfini initialized BRepFeat_MakePrism.cxx
default action of "switch" returned
nombre mas of chars was expanded to 1024 (had been 20). this expansion helps avoiding the error of conversion a float number to mas of chars: the size of mas is enough for converting float number now.
Changed status (todo ?) of tests: de step_5 A6 B3, de iges_3 A9
This commit is contained in:
ibs
2013-07-12 12:29:30 +04:00
parent 96a85238fb
commit a8195d65ba
19 changed files with 140 additions and 174 deletions

View File

@@ -102,47 +102,51 @@ Standard_Integer Interface_FloatWriter::Convert (const Standard_Real val,
const Standard_CString rangeform)
{
// Valeur flottante, expurgee de "0000" qui trainent et de "E+00"
// char lval[20];
char lxp[6], *pText;
int i0,j0=0;
const Standard_Integer anMasSize = 5; // change 6 to 5: index 5 is not used below
char lxp[anMasSize], *pText;
int i0, j0 = 0;
for (Standard_Integer i = 0; i < anMasSize; ++i)
lxp[i] = '\0';
lxp[0] = lxp[4] = '\0';
pText=(char *)text;
//
if ( (val >= R1 && val < R2) ||
(val <= -R1 && val > -R2) ) {
if ( (val >= R1 && val < R2) || (val <= -R1 && val > -R2) )
Sprintf(pText,rangeform,val);
}
else {
else
Sprintf(pText,mainform,val);
}
if (zsup) {
for (int i = 0; i < 16; i ++) {
if (zsup)
{
for (int i = 0; i < 16; i ++)
{
i0 = i;
if (text[i] == 'e' || text[i] == 'E') {
lxp[0] = 'E';
lxp[1] = text[i+1];
lxp[2] = text[i+2];
lxp[3] = text[i+3];
lxp[4] = text[i+4];
if (lxp[1] == '+' && lxp[2] == '0' && lxp[3] == '0' && lxp[4] == '\0') {
lxp[0] = '\0';
}
pText[i] = '\0';
}
if (text[i] == '\0') {
break;
if (text[i] == 'e' || text[i] == 'E')
{
lxp[0] = 'E';
lxp[1] = text[i+1];
lxp[2] = text[i+2];
lxp[3] = text[i+3];
lxp[4] = text[i+4];
if (lxp[1] == '+' && lxp[2] == '0' && lxp[3] == '0' && lxp[4] == '\0')
lxp[0] = '\0';
pText[i] = '\0';
}
if (text[i] == '\0') break;
}
//#52 rln 23.12.98 converting 1e-07 throws exception
for (int j = i0-1; j >= 0; j --) {
for (int j = i0-1; j >= 0; j --)
{
j0 = j;
if (text[j] != '0') {
break;
}
if (text[j] != '0')
break;
pText[j] = '\0';
}
pText[j0+1] = lxp[0];
pText[j0+2] = lxp[1];
pText[j0+3] = lxp[2];