Skip to content

Commit

Permalink
change ReverseDimensions argument types
Browse files Browse the repository at this point in the history
  • Loading branch information
pnorbert committed Aug 16, 2022
1 parent a82c36c commit d16e981
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions source/adios2/toolkit/format/bp5/BP5Deserializer.cpp
Expand Up @@ -404,13 +404,13 @@ BP5Deserializer::ControlInfo *BP5Deserializer::BuildControl(FMFormat Format)
return ret;
}

void BP5Deserializer::ReverseDimensions(size_t *Dimensions, int count,
int times)
void BP5Deserializer::ReverseDimensions(size_t *Dimensions, size_t count,
size_t times)
{
int Offset = 0;
for (int j = 0; j < times; j++)
size_t Offset = 0;
for (size_t j = 0; j < times; j++)
{
for (int i = 0; i < count / 2; i++)
for (size_t i = 0; i < count / 2; i++)
{
size_t tmp = Dimensions[Offset + i];
Dimensions[Offset + i] = Dimensions[Offset + count - i - 1];
Expand Down
2 changes: 1 addition & 1 deletion source/adios2/toolkit/format/bp5/BP5Deserializer.h
Expand Up @@ -184,7 +184,7 @@ class BP5Deserializer : virtual public BP5Base
BP5VarRec *LookupVarByKey(void *Key) const;
BP5VarRec *LookupVarByName(const char *Name);
BP5VarRec *CreateVarRec(const char *ArrayName);
void ReverseDimensions(size_t *Dimensions, int count, int times);
void ReverseDimensions(size_t *Dimensions, size_t count, size_t times);
void BreakdownVarName(const char *Name, char **base_name_p,
DataType *type_p, int *element_size_p);
void BreakdownFieldType(const char *FieldType, bool &Operator,
Expand Down

0 comments on commit d16e981

Please sign in to comment.