fix malformed format string

This commit is contained in:
erkn 2022-10-11 00:46:32 +02:00
parent 12f088a5ce
commit 0706a0eca3

View file

@ -625,9 +625,9 @@ void write_mcpl_source_point(const char *filename, bool surf_source_bank)
//write_attribute(file_id, "filetype", "source");
//write header stuff (oopy in xml-files as binary blobs for instance))
if (VERSION_DEV){
line=fmt::format("OpenMC {VERSION_MAJOR}.{VERSION_MINOR}.{VERSION_RELEASE}-development");
line=fmt::format("OpenMC {0}.{1}.{2}-development",VERSION_MAJOR,VERSION_MINOR,VERSION_RELEASE);
} else {
line=fmt::format("OpenMC {VERSION_MAJOR}.{VERSION_MINOR}.{VERSION_RELEASE}");
line=fmt::format("OpenMC {0}.{1}.{2}",VERSION_MAJOR,VERSION_MINOR,VERSION_RELEASE);
}
mcpl_hdr_set_srcname(file_id,line.c_str());
}