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:
@@ -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';
|
||||
|
Reference in New Issue
Block a user