mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 21:48:21 +00:00
Merge remote-tracking branch 'origin/topic/dnthayer/ticket1863'
* origin/topic/dnthayer/ticket1863: Fix ASCII logging of very large values of type "double" Add more test cases to ascii-double.bro
This commit is contained in:
commit
44baf1b355
4 changed files with 107 additions and 13 deletions
|
@ -145,7 +145,9 @@ void ODesc::Add(double d, bool no_exp)
|
|||
AddBytes(&d, sizeof(d));
|
||||
else
|
||||
{
|
||||
char tmp[256];
|
||||
// Buffer needs enough chars to store max. possible "double" value
|
||||
// of 1.79e308 without using scientific notation.
|
||||
char tmp[350];
|
||||
|
||||
if ( no_exp )
|
||||
modp_dtoa3(d, tmp, sizeof(tmp), IsReadable() ? 6 : 8);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue