jackdanielz pushed a commit to branch master.

http://git.enlightenment.org/tools/clouseau.git/commit/?id=e79702cbb9c8259b410b297c37e23fc09cc908a8

commit e79702cbb9c8259b410b297c37e23fc09cc908a8
Author: Daniel Zaoui <daniel.za...@samsung.com>
Date:   Sun Oct 20 19:21:01 2013 +0300

    Pointer search: navigation to the widget was not working.
    
    strtol was used to convert the string into a number. For no reason, it
    returns -1 (maybe due to the pointer MSB to 1).
    Now, we use strtoul because we really don't care about some sign.
---
 src/bin/clouseau_client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/clouseau_client.c b/src/bin/clouseau_client.c
index ade7e3c..04b3d53 100644
--- a/src/bin/clouseau_client.c
+++ b/src/bin/clouseau_client.c
@@ -1759,7 +1759,7 @@ _jump_to_entry_activated(void *data,
 {
    Gui_Elements *g = data;
    tree_data_st *td = (g->sel_app->td) ? g->sel_app->td : NULL;
-   long long int ptr = strtol(elm_object_text_get(obj), NULL, 16);
+   long long unsigned int ptr = strtoul(elm_object_text_get(obj), NULL, 16);
    Eina_List *found = NULL;
 
    if ((found = _list_tree_item_pointer_find(td->tree, (uintptr_t) ptr)))

-- 


Reply via email to