From d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 15 Aug 2008 23:45:02 -0500 Subject: Second Life viewer sources 1.18.0.6 --- linden/indra/llcommon/llskiplist.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'linden/indra/llcommon/llskiplist.h') diff --git a/linden/indra/llcommon/llskiplist.h b/linden/indra/llcommon/llskiplist.h index 40d0c8a..be3385d 100644 --- a/linden/indra/llcommon/llskiplist.h +++ b/linden/indra/llcommon/llskiplist.h @@ -28,10 +28,11 @@ #ifndef LL_LLSKIPLIST_H #define LL_LLSKIPLIST_H -#include "llrand.h" +#include "llerror.h" +//#include "vmath.h" // NOTA BENE: Insert first needs to be < NOT <= -// Binary depth must be >= 2 + template class LLSkipList { @@ -143,11 +144,14 @@ private: // Implementation // - -// Binary depth must be >= 2 template inline void LLSkipList::init() { + if (BINARY_DEPTH < 2) + { + llerrs << "Trying to create skip list with too little depth, " + "must be 2 or greater" << llendl; + } S32 i; for (i = 0; i < BINARY_DEPTH; i++) { -- cgit v1.1