Improved condition

This commit is contained in:
Joey Schulze 2007-06-02 19:08:52 +00:00
parent 5bfd6c6dce
commit b438513313

3
ksym.c
View File

@ -691,7 +691,8 @@ char * LookupSymbol(value, sym)
return((char *) 0);
}
if ( ksym.size < msym.size )
if ( ksym.offset == 0 || msym.offset < 0 ||
(ksym.offset > 0 && ksym.offset < msym.offset) )
{
sym->offset = ksym.offset;
sym->size = ksym.size;