Commit f63e4e99 authored by Brad King's avatar Brad King
Browse files

BUG: Fixed return value handling to support signed char properly.

parent a83f3868
......@@ -78,7 +78,7 @@ void return_result(FILE *fp)
case 0x2: fprintf(fp,"void "); break;
case 0x3: fprintf(fp,"char "); break;
case 0x7: fprintf(fp,"double "); break;
case 0x4: case 0x5: case 0x6: case 0xA: case 0xB: case 0xC:
case 0x4: case 0x5: case 0x6: case 0xA: case 0xB: case 0xC: case 0xD:
case 0x13: case 0x14: case 0x15: case 0x16: case 0x1A: case 0x1B: case 0x1C:
fprintf(fp,"int ");
break;
......
......@@ -55,6 +55,7 @@ void use_hints(FILE *fp)
fprintf(fp,");\n");
break;
case 0x304:
case 0x30D:
fprintf(fp," return Py_BuildValue((char*)\"");
for (i = 0; i < currentFunction->HintSize; i++) fprintf(fp,"i");
fprintf(fp,"\"");
......
......@@ -303,6 +303,7 @@ void return_result(FILE *fp)
#ifndef VTK_USE_64BIT_IDS
case 0xA:
#endif
case 0xD:
fprintf(fp," char tempResult[1024];\n");
fprintf(fp," sprintf(tempResult,\"%%i\",temp%i);\n",
MAX_ARGS);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment