From 104e521c04d1a0cad9c68fb11e250e12ad8917ef Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Wed, 17 Oct 2018 07:08:47 -0700 Subject: 4709 --- 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 d38372a1..3ce63b55 100644 --- a/html/015literal_noninteger.cc.html +++ b/html/015literal_noninteger.cc.html @@ -82,11 +82,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