From 1c2d788b454670bf8fa1cb65c6251a8ff6ddcaf7 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 19 Jun 2017 11:29:20 -0700 Subject: 3927 --- html/015literal_noninteger.cc.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'html/015literal_noninteger.cc.html') diff --git a/html/015literal_noninteger.cc.html b/html/015literal_noninteger.cc.html index f4efa035..f53cba44 100644 --- a/html/015literal_noninteger.cc.html +++ b/html/015literal_noninteger.cc.html @@ -83,11 +83,11 @@ if ('onhashchange' in window) { 20 return s.find_first_not_of("0123456789-.") == string::npos // no other characters 21 ¦ ¦ && s.find_first_of("0123456789") != string::npos // at least one digit 22 ¦ ¦ && s.find('-', 1) == string::npos // '-' only at first position -23 ¦ ¦ && std::count(s.begin(), s.end(), '.') == 1; // exactly one decimal point +23 ¦ ¦ && std::count(s.begin(), s.end(), '.') == 1; // exactly one decimal point 24 } 25 26 double to_double(string n) { -27 char* end = NULL; +27 char* end = NULL; 28 // safe because string.c_str() is guaranteed to be null-terminated 29 double result = strtod(n.c_str(), &end); 30 assert(*end == '\0'); -- cgit 1.4.1-2-gfad0