diff --git a/libclamav/c++/llvm/lib/Support/Allocator.cpp b/libclamav/c++/llvm/lib/Support/Allocator.cpp index 7433247..d7cc20b 100644 --- a/libclamav/c++/llvm/lib/Support/Allocator.cpp +++ b/libclamav/c++/llvm/lib/Support/Allocator.cpp @@ -83,7 +83,7 @@ MemSlab *Slab = CurSlab; while (Slab) { char *End = Slab == CurSlab ? CurPtr : (char*)Slab + Slab->Size; - for (char *Ptr = (char*)Slab+1; Ptr < End; Ptr += Size) { + for (char *Ptr = (char*)(Slab+1); Ptr < End; Ptr += Size) { Ptr = AlignPtr(Ptr, Alignment); if (Ptr + Size <= End) DTor(Ptr);