Change intptr_t to uintptr_t in hashlib.h
authorClifford Wolf <clifford@clifford.at>
Tue, 18 Jul 2017 15:38:19 +0000 (17:38 +0200)
committerClifford Wolf <clifford@clifford.at>
Tue, 18 Jul 2017 15:38:19 +0000 (17:38 +0200)
kernel/hashlib.h

index 4199e6f3ae87241a548ab3d02f7e92d9df1da563..63ac956f21d8ff78bf1168c9377ff8ba585ab149 100644 (file)
@@ -147,7 +147,7 @@ struct hash_ptr_ops {
                return a == b;
        }
        static inline unsigned int hash(const void *a) {
-               return (intptr_t)a;
+               return (uintptr_t)a;
        }
 };