From 5ed98f9a46d9060a6a678d6bd26447235c8c3bc0 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 13 Sep 2005 22:16:29 +0000 Subject: [PATCH] Fixed some more template bugs --HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40111 --- sourcehook/sh_string.h | 2 +- sourcehook/sh_tinyhash.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sourcehook/sh_string.h b/sourcehook/sh_string.h index 20e20bb..9c8dc22 100755 --- a/sourcehook/sh_string.h +++ b/sourcehook/sh_string.h @@ -44,7 +44,7 @@ public: assign(src); } - String(String &src) + String(const String &src) { v = NULL; a_size = 0; diff --git a/sourcehook/sh_tinyhash.h b/sourcehook/sh_tinyhash.h index bca011c..4985ebf 100644 --- a/sourcehook/sh_tinyhash.h +++ b/sourcehook/sh_tinyhash.h @@ -197,7 +197,7 @@ namespace SourceHook private: void _Inc() { - if (end || !hash) + if (end || !hash || curbucket >= hash->m_numBuckets) return; if (curbucket < 0) {