diff options
author | Zack Rusin <[email protected]> | 2008-04-23 13:32:41 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2008-04-23 13:32:41 -0400 |
commit | e1180c2d694851ed12e86027aa406ee20546e6d3 (patch) | |
tree | 64d2eb54933e021868bdf26f0d4fe680ffe5b116 /src/gallium/auxiliary/cso_cache | |
parent | 4f93a3a680560940630c44be0066b72a86ff008a (diff) |
fix the simple hash finding function and use it
Diffstat (limited to 'src/gallium/auxiliary/cso_cache')
-rw-r--r-- | src/gallium/auxiliary/cso_cache/cso_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/cso_cache/cso_cache.c b/src/gallium/auxiliary/cso_cache/cso_cache.c index 63464e07058..096875807be 100644 --- a/src/gallium/auxiliary/cso_cache/cso_cache.c +++ b/src/gallium/auxiliary/cso_cache/cso_cache.c @@ -255,9 +255,9 @@ void *cso_hash_find_data_from_template( struct cso_hash *hash, while (!cso_hash_iter_is_null(iter)) { void *iter_data = cso_hash_iter_data(iter); if (!memcmp(iter_data, templ, size)) { - /* Return the payload: + /* We found a match */ - return (unsigned char *)iter_data + size; + return iter_data; } iter = cso_hash_iter_next(iter); } |