From a802f0cedc7b5580d746f46ae62fcf8074ae3c49 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 2 Mar 2017 04:41:24 -0800 Subject: 3749 --- 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 f09dba94..ecd41cea 100644 --- a/html/015literal_noninteger.cc.html +++ b/html/015literal_noninteger.cc.html @@ -81,11 +81,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