Revision: 5856
Author: [email protected]
Date: Thu Nov 18 06:00:23 2010
Log: Fix usage of NULL in integer contexts.

Review URL: http://codereview.chromium.org/5195002
http://code.google.com/p/v8/source/detail?r=5856

Modified:
 /branches/bleeding_edge/src/preparser.h

=======================================
--- /branches/bleeding_edge/src/preparser.h     Sat Nov 13 06:37:28 2010
+++ /branches/bleeding_edge/src/preparser.h     Thu Nov 18 06:00:23 2010
@@ -720,7 +720,7 @@
     ReportMessageAt(pos.beg_pos, pos.end_pos,
                     "newline_after_throw", NULL);
     *ok = false;
-    return NULL;
+    return kUnknownStatement;
   }
   ParseExpression(true, CHECK_OK);
   ExpectSemicolon(CHECK_OK);
@@ -1006,7 +1006,7 @@
   //     ('[' Expression ']' | '.' Identifier | Arguments)*

   // Parse the initial primary or function expression.
-  Expression result = NULL;
+  Expression result = kUnknownExpression;
   if (peek() == i::Token::FUNCTION) {
     Consume(i::Token::FUNCTION);
     if (peek() == i::Token::IDENTIFIER) {

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to