Commit a9b945e8 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix off-by-one error.

parent 1ed46edf
......@@ -25,8 +25,8 @@ FCALLSCSUB0 (pioEndTimestepping, PIOENDTIMESTEPPING, pioendtimestepping)
FCALLSCSUB0 (pioFinalize, PIOFINALIZE, piofinalize)
FCALLSCSUB0 (cdiPioNoPostCommSetup, CDIPIONOPOSTCOMMSETUP, cdipionopostcommsetup)
#undef ROUTINE_5
#define ROUTINE_5 (void (*)(void))
#undef ROUTINE_6
#define ROUTINE_6 (void (*)(void))
static int pioInit_fwrap(int commSuper, int nProcsIO, int IOMode, int *pioNamespace, float partInflate, void (*postCommSetupActions)(void))
{
MPI_Comm v;
......
......@@ -1042,8 +1042,8 @@ static int cfXtIdxlistConvert(FILE *outfp, const char *argName,
static int cfVoidFuncPrologue(FILE *outfp, size_t argNum)
{
int retval
= fprintf(outfp, "\n#undef ROUTINE_%zu\n#define ROUTINE_%zu %s\n", argNum,
argNum, "(void (*)(void))");
= fprintf(outfp, "\n#undef ROUTINE_%zu\n#define ROUTINE_%zu %s\n",
argNum+1, argNum+1, "(void (*)(void))");
return retval;
}
......
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