From: bernie Date: Wed, 8 Dec 2004 09:42:30 +0000 (+0000) Subject: Suppress warning. X-Git-Tag: 1.0.0~932 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=444f05df1b7577f65f2a724e63ca88f58ecc341e;p=bertos.git Suppress warning. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@309 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/mware/hashtable.c b/mware/hashtable.c index 5122fb58..72aae36d 100755 --- a/mware/hashtable.c +++ b/mware/hashtable.c @@ -61,6 +61,9 @@ /*#* *#* $Log$ + *#* Revision 1.4 2004/12/08 09:42:30 bernie + *#* Suppress warning. + *#* *#* Revision 1.3 2004/10/03 20:43:22 bernie *#* Import changes from sc/firmware. *#* @@ -224,7 +227,7 @@ static bool insert(struct HashTable* ht, const void* key, uint8_t key_length, co return false; if (HT_HAS_INTERNAL_KEY(ht)) - key_length = MIN(key_length, INTERNAL_KEY_MAX_LENGTH); + key_length = MIN(key_length, (uint8_t)INTERNAL_KEY_MAX_LENGTH); node = perform_lookup(ht, key, key_length); if (!node) @@ -286,7 +289,7 @@ const void* ht_find(struct HashTable* ht, const void* key, uint8_t key_length) HashNodePtr node; if (HT_HAS_INTERNAL_KEY(ht)) - key_length = MIN(key_length, INTERNAL_KEY_MAX_LENGTH); + key_length = MIN(key_length, (uint8_t)INTERNAL_KEY_MAX_LENGTH); node = perform_lookup(ht, key, key_length);