From 7bff70268a4e618dc0b4158065f47dc0c59a382d Mon Sep 17 00:00:00 2001 From: isaacs Date: Sat, 19 Mar 2011 11:19:56 -0700 Subject: [PATCH] signage warning, and add v8::namespace --- src/platform_darwin.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform_darwin.cc b/src/platform_darwin.cc index 13a5133644..8cd38af4a0 100644 --- a/src/platform_darwin.cc +++ b/src/platform_darwin.cc @@ -128,7 +128,7 @@ int Platform::GetCPUInfo(Local *cpus) { return -1; } *cpus = Array::New(numcpus); - for (int i = 0; i < numcpus; i++) { + for (unsigned int i = 0; i < numcpus; i++) { cpuinfo = Object::New(); cputimes = Object::New(); cputimes->Set(String::New("user"), @@ -210,7 +210,7 @@ int Platform::GetLoadAvg(Local *loads) { } -Handle Platform::GetInterfaceAddresses() { +v8::Handle Platform::GetInterfaceAddresses() { HandleScope scope; return scope.Close(Object::New()); }