Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

Commit a0864cd

Browse files
author
Nicolas Cornu
committed
Use %a as nrn/nmodl
1 parent 11bb736 commit a0864cd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/mod2c_core/units.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,8 +1025,7 @@ void nrnunit_dynamic_str(char* buf, const char* name, char* u1, char* u2) {
10251025
#if USE_LEGACY_UNITS
10261026
sprintf(buf, "\nstatic double %s = %g;\n", name, u);
10271027
#else
1028-
/* compiler can't read %a format til c++17 (or c99) */
1029-
sprintf(buf, "\nstatic double %s = /* %a; */ %.18g;\n", name, u, u);
1028+
sprintf(buf, "\nstatic double %s = %a;\n", name, u, u);
10301029
#endif
10311030
}
10321031

0 commit comments

Comments
 (0)