diff options
Diffstat (limited to 'include/crow/json.h')
-rw-r--r-- | include/crow/json.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/crow/json.h b/include/crow/json.h index 891fedf..35f9068 100644 --- a/include/crow/json.h +++ b/include/crow/json.h @@ -1377,7 +1377,12 @@ namespace crow case type::Number: { char outbuf[128]; +#ifdef _MSC_VER + sprintf_s(outbuf, 128, "%g", v.d); +#else sprintf(outbuf, "%g", v.d); +#endif + out += outbuf; } break; |