Fix some warnings generated when -Wconversion-null is used.

Review URL: https://codereview.chromium.org//11312096

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14553 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
asiva@google.com 2012-11-06 02:58:00 +00:00
parent 763dcbb20a
commit f4fc4f8318
3 changed files with 3 additions and 3 deletions

View file

@ -335,7 +335,7 @@ static bool CreateIsolate(SpawnState* state, char** error) {
static bool RunIsolate(uword parameter) {
Isolate* isolate = reinterpret_cast<Isolate*>(parameter);
SpawnState* state = reinterpret_cast<SpawnState*>(isolate->spawn_data());
isolate->set_spawn_data(NULL);
isolate->set_spawn_data(0);
{
StartIsolateScope start_scope(isolate);
StackZone zone(isolate);

View file

@ -165,7 +165,7 @@ Isolate::Isolate()
stack_limit_(0),
saved_stack_limit_(0),
message_handler_(NULL),
spawn_data_(NULL),
spawn_data_(0),
gc_prologue_callbacks_(),
gc_epilogue_callbacks_(),
deopt_cpu_registers_copy_(NULL),

View file

@ -36,7 +36,7 @@ MessageHandler::MessageHandler()
task_(NULL),
start_callback_(NULL),
end_callback_(NULL),
callback_data_(NULL) {
callback_data_(0) {
ASSERT(queue_ != NULL);
ASSERT(oob_queue_ != NULL);
}