changeset 212:5f144bab5de1

We should reteurn the content of the offset instead of offset itself since the return type is mb_obj_t
author wycc@wycc-desktop
date Fri, 12 Dec 2008 09:10:05 +0800
parents 41eab0a10651
children a0a3196b1a05 09ad4382aa41
files tools/mb_c_source.m4
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }