Skip to content

Commit

Permalink
Fix compile error (apparently only on 64 bit) by by casting to JSIntP…
Browse files Browse the repository at this point in the history
…tr instead of int.

Closes #18
  • Loading branch information
zpao committed Mar 29, 2011
1 parent 7bb67d5 commit 3d09cc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/v8api/object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ int
Object::GetIdentityHash()
{
JSObject *obj = *this;
return reinterpret_cast<int>(obj);
return reinterpret_cast<JSIntPtr>(obj);
}

Object::PrivateData&
Expand Down

0 comments on commit 3d09cc8

Please sign in to comment.