[SSSD] [PATCH] Remove spurious cast

Jakub Hrozek jhrozek at redhat.com
Thu Mar 28 19:32:49 UTC 2013


The cast broke INI on 32bit systems. There is no need for the cast at
all as both lvalue and rvalue are uint64_t.
-------------- next part --------------
>From 04130842ae8fb7952e5055dfe8769d6ecf47aafa Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Thu, 28 Mar 2013 15:09:29 -0400
Subject: [PATCH] Remove spurious cast

---
 ini/ini_get_valueobj.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ini/ini_get_valueobj.c b/ini/ini_get_valueobj.c
index a7efe95bee97702905e2b17dbd85ad29d815a6e4..dad99329aa4b518772f23a14b919445a1dd3c00e 100644
--- a/ini/ini_get_valueobj.c
+++ b/ini/ini_get_valueobj.c
@@ -224,7 +224,7 @@ int ini_get_config_valueobj(const char *section,
             return EOK;
         }
 
-        if ((hash == (unsigned long int)col_get_item_hash(item)) &&
+        if ((hash == col_get_item_hash(item)) &&
             (strncasecmp(col_get_item_property(item, &len), name, name_len) == 0) &&
             (len == name_len)) {
                 TRACE_INFO_STRING("Item is found", name);
-- 
1.8.0



More information about the sssd-devel mailing list