From c8b0e11fe7707858240c17aed2b906b8b498e24a Mon Sep 17 00:00:00 2001 From: Laurens Voerman Date: Mon, 16 Dec 2019 11:02:41 +0100 Subject: [PATCH] fix debug compile error for ReaderWriterTGA --- src/osgPlugins/tga/ReaderWriterTGA.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgPlugins/tga/ReaderWriterTGA.cpp b/src/osgPlugins/tga/ReaderWriterTGA.cpp index e62261a04..7249bfe29 100644 --- a/src/osgPlugins/tga/ReaderWriterTGA.cpp +++ b/src/osgPlugins/tga/ReaderWriterTGA.cpp @@ -656,7 +656,7 @@ int *numComponents_ret) { rle_decode(&src, linebuf.data(), width*depth, &rleRemaining, &rleIsCompressed, rleCurrent, rleEntrySize); - assert(src <= buf + size); + assert(src <= buf.data() + size); for (x = 0; x < width; x++) { @@ -722,7 +722,7 @@ int *numComponents_ret) { rle_decode(&src, linebuf.data(), width*depth, &rleRemaining, &rleIsCompressed, rleCurrent, rleEntrySize); - assert(src <= buf + size); + assert(src <= buf.data() + size); for (x = 0; x < width; x++) { convert_data(linebuf.data(), dest, bLeftToRight ? x : (width-1) - x, depth, format);