Commit 50bc6804 authored by Kirill Terekhov's avatar Kirill Terekhov

Fix previously introduced problem

parent 2817fbcc
......@@ -19,7 +19,7 @@ namespace INMOST
sprintf(keyword,"gmvinput"); fwrite(keyword,1,8,file);
sprintf(keyword,"ieee");
if( sizeof(Storage::real) != 8 || sizeof(Storage::integer) != 8 )
sprintf(keyword,"ieeei%zdr%zd",sizeof(Storage::integer),sizeof(Storage::real));
sprintf(keyword,"ieeei%dr%d",(int)sizeof(Storage::integer),(int)sizeof(Storage::real));
fwrite(keyword,1,8,file);
sprintf(keyword,"nodev"); fwrite(keyword,1,8,file);
keynum = static_cast<Storage::integer>(NumberOfNodes()); fwrite(&keynum,sizeof(Storage::integer),1,file);
......
......@@ -263,10 +263,10 @@ safe_output:
}
}
fprintf(f, "CELLS %u %zd\n", NumberOfCells() + NumberOfFaces(), values.size());
fprintf(f, "CELLS %u %d\n", NumberOfCells() + NumberOfFaces(), (int)values.size());
}
else
fprintf(f, "CELLS %u %zd\n", NumberOfCells(), values.size());
fprintf(f, "CELLS %u %d\n", NumberOfCells(), (int)values.size());
for(dynarray<Storage::integer,64>::size_type i = 0; i < values.size(); i++)
{
......
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