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 8b58180..e2d116c 100644 --- a/include/crow/json.h +++ b/include/crow/json.h @@ -1394,7 +1394,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; |