Skip to content

Commit

Permalink
Time#hash returns the Fixnum value
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Jun 16, 2012
1 parent efb8c27 commit db03506
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion spec/frozen/tags/macruby/core/time/hash_tags.txt

This file was deleted.

3 changes: 2 additions & 1 deletion time.c
Expand Up @@ -3402,7 +3402,8 @@ time_hash(VALUE time, SEL sel)
struct time_object *tobj;

GetTimeval(time, tobj);
return rb_hash(w2v(tobj->timew));
VALUE hash = rb_hash(w2v(tobj->timew));
return LONG2FIX(NUM2LONG(hash));
}

/* :nodoc: */
Expand Down

0 comments on commit db03506

Please sign in to comment.