diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2007-12-03 22:47:22 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2007-12-03 22:47:22 +0000 |
commit | 8a14455500c8ccc268eac7e6805e47757c7e3311 (patch) | |
tree | aac2a921cb6eaec69008ae94e820dcf352404018 /src/frames.c | |
parent | a6b309b09eb29fec6a53dc6428d987486a0a96b4 (diff) |
Add a few UL.
Diffstat (limited to 'src/frames.c')
-rw-r--r-- | src/frames.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/frames.c b/src/frames.c index 61b9b82..5ebcff1 100644 --- a/src/frames.c +++ b/src/frames.c @@ -5,7 +5,7 @@ Frame * frames_get (Frames *frames, gulong ip) { - guint index = (ip ^ 6017773) % frames->frames.size; + guint index = (ip ^ 6017773UL) % frames->frames.size; Frame *frame = frames->frames.nodes[index]; while (frame != NULL && frame->ip != ip) frame = frame->ht_next; @@ -202,7 +202,7 @@ frames_add (Frames *frames, node = next) { next = node->ht_next; - hv = (node->ip ^ 6017773) % new_size; + hv = (node->ip ^ 6017773UL) % new_size; node->ht_next = new_nodes[hv]; new_nodes[hv] = node; } @@ -212,7 +212,7 @@ frames_add (Frames *frames, frames->frames.size = new_size; } - index = (ip ^ 6017773) % frames->frames.size; + index = (ip ^ 6017773UL) % frames->frames.size; f->ht_next = frames->frames.nodes[index]; frames->frames.nodes[index] = f; g_assert (frames_get (frames, ip) == f); |