1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2025-02-02 20:52:55 +01:00

(add_memory): Rephrase for-loop conditional to avoid bug in Intel-compiler

which gets triggered with -O3 -ip.

(Logical change 1.212)
This commit is contained in:
mostang.com!davidm 2004-04-22 22:36:53 +00:00
parent f4fc60d371
commit 58badbb339

View file

@ -114,7 +114,7 @@ add_memory (struct mempool *pool, char *mem, size_t size, size_t obj_size)
{
char *obj;
for (obj = mem; obj + obj_size <= mem + size; obj += obj_size)
for (obj = mem; obj <= mem + size - obj_size; obj += obj_size)
free_object (pool, obj);
}