diff --git a/src/debug.cpp b/src/debug.cpp index a44fd10..f4ba187 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -155,15 +155,17 @@ namespace bx BX_UNUSED(_err); int32_t total = 0; + const char* data = (const char*)_data; char temp[4096]; while (total != _size) { uint32_t len = bx::uint32_min(sizeof(temp)-1, _size-total); - memCopy(temp, _data, len); + memCopy(temp, data, len); temp[len] = '\0'; - debugOutput(temp); + data += len; total += len; + debugOutput(temp); } return total; diff --git a/src/filepath.cpp b/src/filepath.cpp index f3d6a57..1fb2c48 100644 --- a/src/filepath.cpp +++ b/src/filepath.cpp @@ -118,7 +118,6 @@ namespace bx break; } - BX_FALLTHROUGH; default: