Skip to content

Commit 255d1c3

Browse files
author
Isaac Wagner
committed
Fixed some argument dereferencing syntax messiness
1 parent 7023486 commit 255d1c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/hashtable.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ HashTable::~HashTable() {}
3131
Handle<Value> HashTable::Constructor(const Arguments& args) {
3232
HashTable *obj;
3333

34-
if(args.Length() > 0 && (*args[0])->IsInt32()) {
35-
int buckets = (*args[0])->Int32Value();
34+
if(args.Length() > 0 && args[0]->IsInt32()) {
35+
int buckets = args[0]->Int32Value();
3636
obj = new HashTable(buckets);
3737
} else {
3838
obj = new HashTable();
@@ -139,7 +139,7 @@ Handle<Value> HashTable::Rehash(const Arguments& args) {
139139

140140
HashTable *obj = ObjectWrap::Unwrap<HashTable>(args.This());
141141

142-
size_t buckets = (*args[0])->Int32Value();
142+
size_t buckets = args[0]->Int32Value();
143143

144144
obj->map.rehash(buckets);
145145

@@ -151,7 +151,7 @@ Handle<Value> HashTable::Reserve(const Arguments& args) {
151151

152152
HashTable *obj = ObjectWrap::Unwrap<HashTable>(args.This());
153153

154-
size_t elements = (*args[0])->Int32Value();
154+
size_t elements = args[0]->Int32Value();
155155

156156
obj->map.rehash(elements);
157157

0 commit comments

Comments
 (0)