mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #2154 from cremno/dbl_dig
remove `DBL_DIG` fallback definition
This commit is contained in:
+1
-3
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <ctype.h>
|
||||
#include <float.h>
|
||||
#include <limits.h>
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
@@ -2156,9 +2157,6 @@ mrb_cstr_to_dbl(mrb_state *mrb, const char * p, mrb_bool badcheck)
|
||||
{
|
||||
char *end;
|
||||
double d;
|
||||
#if !defined(DBL_DIG)
|
||||
# define DBL_DIG 16
|
||||
#endif
|
||||
|
||||
enum {max_width = 20};
|
||||
#define OutOfRange() (((w = end - p) > max_width) ? \
|
||||
|
||||
Reference in New Issue
Block a user