68
68
// Check for the special symbol '+INF', which means +Infinity. Note: C99
70
70
// non-C99-compliant compilers (e.g. MSVC).
71
71
if (n == 4 && strncmp(src, "+INF", 4) == 0) {
72
72
expr = new(ctx) s_float(std::numeric_limits<float>::infinity());
74
74
// Check if the atom is a number.
79
79
int i = strtol(src, &int_end, 10);
82
82
expr = new(ctx) s_float(f);