Index: tool/lemon.c ================================================================== --- tool/lemon.c +++ tool/lemon.c @@ -1729,11 +1729,11 @@ ){ unsigned long offset; char *ep; char *set[LISTSIZE]; int i; - offset = (unsigned long)next - (unsigned long)list; + offset = (unsigned long)((char*)next - (char*)list); for(i=0; i