You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: innative/lexer.cpp
+19-8Lines changed: 19 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -105,11 +105,16 @@ namespace innative {
105
105
}
106
106
s += i;
107
107
108
-
while(s < end && isxdigit(*s)) ++s;
109
-
110
108
if(target)
111
109
target->assign(begin + 3 + i, s - begin - 3 - i);
112
110
111
+
while(s < end && (*s == '_' || isxdigit(*s)))
112
+
{
113
+
if(target && *s != '_')
114
+
target->append(1, *s);
115
+
++s;
116
+
}
117
+
113
118
return s;
114
119
}
115
120
@@ -155,12 +160,12 @@ namespace innative {
155
160
if(strncasecmp(p, "inf", 3) != 0)
156
161
return ERR_WAT_OUT_OF_RANGE;
157
162
}
158
-
if(std::is_same<float, T>::value && fabs(out) <= 1.1754942e-38f) // glibc incorrectly considers subnormal numbers as underflow and sets ERANGE in this case
0 commit comments