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

0024257: Minor corrections for building / testing on VC++ 11

Several corrections coming from building and testing on MSVC++ 11:
- compiler warnings corrected in structiges.c (32-bit mode) and BOPAlgo (64-bit mode)
- DRAW command for testing exceptions (OCC6143) refactored for getting some output even if process fails (problem with stack overflow handling)
- DRAW command readstep removed as it leads to hang-up in Debug mode due to waiting for user input; the only test that used it changed to use testreadstep command
This commit is contained in:
abv
2013-10-14 17:38:02 +04:00
committed by bugmaster
parent 3054a9f4df
commit 37e640d5bd
6 changed files with 22 additions and 69 deletions

View File

@@ -222,13 +222,13 @@ void iges_newparam (int typarg, int longval, char *parval)
/* Complement du parametre courant (cf Hollerith sur +ieurs lignes) */
void iges_addparam (int longval, char* parval)
{
char *newval, *oldval; int i;
size_t long0;
char *newval, *oldval;
int i, long0;
if (longval <= 0) return;
oldval = curparam->parval;
long0 = strlen(oldval);
long0 = (int)strlen(oldval);
/* newval = (char*) malloc(long0+longval+1); */
newval = iges_newchar("",(int)long0+longval+1);
newval = iges_newchar("",long0+longval+1);
for (i = 0; i < long0; i ++) newval[i] = oldval[i];
for (i = 0; i < longval; i ++) newval[i+long0] = parval[i];
newval[long0+longval] = '\0';