# HG changeset patch # User wycc@wycc-desktop # Date 1229044205 -28800 # Node ID 5f144bab5de120e086246ff6274e892116ef1bba # Parent 41eab0a10651727b267fc29b661a2678f5fab639 We should reteurn the content of the offset instead of offset itself since the return type is mb_obj_t diff -r 41eab0a10651 -r 5f144bab5de1 tools/mb_c_source.m4 --- a/tools/mb_c_source.m4 Fri Dec 12 00:41:37 2008 +0800 +++ b/tools/mb_c_source.m4 Fri Dec 12 09:10:05 2008 +0800 @@ -362,7 +362,7 @@ for(i = 0; i < lsym->num_entries; i++) { if(strcmp(lsym->entries[i].sym, sym) != 0) continue; - return (mb_obj_t *)(((void *)lsym) + lsym->entries[i].offset); + return (mb_obj_t *)*((int*)(((void *)lsym) + lsym->entries[i].offset)); } return NULL; }