[svn:parrot] r49145 - trunk/src
luben at svn.parrot.org
luben at svn.parrot.org
Sun Sep 19 03:10:50 UTC 2010
Author: luben
Date: Sun Sep 19 03:10:50 2010
New Revision: 49145
URL: https://trac.parrot.org/parrot/changeset/49145
Log:
fix some warnings
Modified:
trunk/src/hash.c
Modified: trunk/src/hash.c
==============================================================================
--- trunk/src/hash.c Sun Sep 19 03:10:42 2010 (r49144)
+++ trunk/src/hash.c Sun Sep 19 03:10:50 2010 (r49145)
@@ -172,9 +172,9 @@
PARROT_CAN_RETURN_NULL
static HashBucket * parrot_hash_get_bucket_string(PARROT_INTERP,
- ARGIN(Hash *hash),
+ ARGIN(const Hash *hash),
ARGIN(STRING *s),
- INTVAL hashval)
+ UINTVAL hashval)
__attribute__nonnull__(1)
__attribute__nonnull__(2)
__attribute__nonnull__(3);
@@ -1470,8 +1470,8 @@
/*
-=item C<static HashBucket * parrot_hash_get_bucket_string(PARROT_INTERP, Hash
-*hash, STRING *s, INTVAL hashval)>
+=item C<static HashBucket * parrot_hash_get_bucket_string(PARROT_INTERP, const
+Hash *hash, STRING *s, UINTVAL hashval)>
Given a hash, a STRING key, and the hashval of the key, returns the appropriate
bucket of the hash for the key. This assumes buckets are already available, so
@@ -1483,8 +1483,8 @@
PARROT_CAN_RETURN_NULL
static HashBucket *
-parrot_hash_get_bucket_string(PARROT_INTERP, ARGIN(Hash *hash),
- ARGIN(STRING *s), INTVAL hashval)
+parrot_hash_get_bucket_string(PARROT_INTERP, ARGIN(const Hash *hash),
+ ARGIN(STRING *s), UINTVAL hashval)
{
ASSERT_ARGS(parrot_hash_get_bucket_string)
HashBucket *bucket = hash->index[hashval & hash->mask];
More information about the parrot-commits
mailing list