projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a8c729
)
signage warning, and add v8::namespace
author
isaacs
<i@izs.me>
Sat, 19 Mar 2011 18:19:56 +0000
(11:19 -0700)
committer
Ryan Dahl
<ry@tinyclouds.org>
Tue, 22 Mar 2011 20:16:45 +0000
(13:16 -0700)
src/platform_darwin.cc
patch
|
blob
|
history
diff --git
a/src/platform_darwin.cc
b/src/platform_darwin.cc
index
13a5133
..
8cd38af
100644
(file)
--- a/
src/platform_darwin.cc
+++ b/
src/platform_darwin.cc
@@
-128,7
+128,7
@@
int Platform::GetCPUInfo(Local<Array> *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<Array> *loads) {
}
-
Handle<
Value> Platform::GetInterfaceAddresses() {
+
v8::Handle<v8::
Value> Platform::GetInterfaceAddresses() {
HandleScope scope;
return scope.Close(Object::New());
}