From 1c246db206481fc253ccc3488153fc5fbe6de285 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 30 Mar 2022 20:07:51 +0200 Subject: Fixed bad Print usage --- FoundationEx/List.inl | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'FoundationEx') diff --git a/FoundationEx/List.inl b/FoundationEx/List.inl index 14e340d..9ccb796 100644 --- a/FoundationEx/List.inl +++ b/FoundationEx/List.inl @@ -13,11 +13,8 @@ #include -// +-------------------------------------------------------------------+ - -void Print(const char* fmt, ...); +#include "Utils.h" -// +-------------------------------------------------------------------+ template List::List(const List& l) @@ -59,12 +56,12 @@ template bool List::check(int& index) const { if (index < 0) { - Print("Bounds error in List(%08x) T=%s index=%d min=0\n", (int)this, T::TYPENAME(), index); + Print("Bounds error in List(%08p) T=%s index=%d min=0\n", this, T::TYPENAME(), index); index = 0; } else if (index >= items) { - Print("Bounds error in List(%08x) T=%s index=%d max=%d\n", (int)this, T::TYPENAME(), index, items-1); + Print("Bounds error in List(%08p) T=%s index=%d max=%d\n", this, T::TYPENAME(), index, items-1); index = items-1; } -- cgit v1.1