From 2e1a0ba1229446fb0c40ff48d4790eeec4029018 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Mon, 21 Jul 2014 20:25:00 -0500 Subject: rts: delint FileLock.c Signed-off-by: Austin Seipp --- rts/FileLock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rts/FileLock.c') diff --git a/rts/FileLock.c b/rts/FileLock.c index 3a05204932..cd2dc1d1dc 100644 --- a/rts/FileLock.c +++ b/rts/FileLock.c @@ -44,8 +44,9 @@ static int cmpLocks(StgWord w1, StgWord w2) static int hashLock(HashTable *table, StgWord w) { Lock *l = (Lock *)w; + StgWord key = l->inode ^ (l->inode >> 32) ^ l->device ^ (l->device >> 32); // Just xor all 32-bit words of inode and device, hope this is good enough. - return hashWord(table, l->inode ^ (l->inode >> 32) ^ l->device ^ (l->device >> 32)); + return hashWord(table, key); } void -- cgit v1.2.1