Fix Clang-tidy modernize-use-nullptr warnings in examples and include directories...
[oota-llvm.git] / examples / Kaleidoscope / Chapter2 / toy.cpp
index 14cba32f5f91308584baa2a236efda4af9b67a27..bcba554b246ec644a052d319dc6597f83e6b5934 100644 (file)
@@ -53,7 +53,7 @@ static int gettok() {
       LastChar = getchar();
     } while (isdigit(LastChar) || LastChar == '.');
 
-    NumVal = strtod(NumStr.c_str(), 0);
+    NumVal = strtod(NumStr.c_str(), nullptr);
     return tok_number;
   }