diff options
author | Aki <please@ignore.pl> | 2022-03-30 20:07:51 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-03-30 20:07:51 +0200 |
commit | 1c246db206481fc253ccc3488153fc5fbe6de285 (patch) | |
tree | 4465c545aee2ca6fca9242e6393f02c7e0b8b0fe /FoundationEx | |
parent | e82de625bdeacca91b306c67ba98344e7086a5c1 (diff) | |
download | starshatter-1c246db206481fc253ccc3488153fc5fbe6de285.zip starshatter-1c246db206481fc253ccc3488153fc5fbe6de285.tar.gz starshatter-1c246db206481fc253ccc3488153fc5fbe6de285.tar.bz2 |
Fixed bad Print usage
Diffstat (limited to 'FoundationEx')
-rw-r--r-- | FoundationEx/List.inl | 9 |
1 files changed, 3 insertions, 6 deletions
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 <stdlib.h> -// +-------------------------------------------------------------------+ - -void Print(const char* fmt, ...); +#include "Utils.h" -// +-------------------------------------------------------------------+ template <class T> List<T>::List(const List<T>& l) @@ -59,12 +56,12 @@ template <class T> bool List<T>::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; } |