aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorGregory Montoir2006-01-30 19:32:28 +0000
committerGregory Montoir2006-01-30 19:32:28 +0000
commiteae3d40f67e9947423a04f0931d30e3b5a270601 (patch)
tree7696e2b1ac63183a07f9bcb03655313089126cda /common
parentea2c7b7d28d5abfc3dd8614de79641fa3b7f079e (diff)
downloadscummvm-rg350-eae3d40f67e9947423a04f0931d30e3b5a270601.tar.gz
scummvm-rg350-eae3d40f67e9947423a04f0931d30e3b5a270601.tar.bz2
scummvm-rg350-eae3d40f67e9947423a04f0931d30e3b5a270601.zip
Fixed assert conditions.
svn-id: r20317
Diffstat (limited to 'common')
-rw-r--r--common/debugger.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/debugger.cpp b/common/debugger.cpp
index 3e2f0db3dd..eee373fe9d 100644
--- a/common/debugger.cpp
+++ b/common/debugger.cpp
@@ -320,7 +320,7 @@ bool Debugger<T>::TabComplete(const char *input, char*& completion) {
// Variable registration function
template <class T>
void Debugger<T>::DVar_Register(const char *varname, void *pointer, int type, int optional) {
- assert(_dvar_count < (int)sizeof(_dvars));
+ assert(_dvar_count < ARRAYSIZE(_dvars));
strcpy(_dvars[_dvar_count].name, varname);
_dvars[_dvar_count].type = type;
_dvars[_dvar_count].variable = pointer;
@@ -332,7 +332,7 @@ void Debugger<T>::DVar_Register(const char *varname, void *pointer, int type, in
// Command registration function
template <class T>
void Debugger<T>::DCmd_Register(const char *cmdname, DebugProc pointer) {
- assert(_dcmd_count < (int)sizeof(_dcmds));
+ assert(_dcmd_count < ARRAYSIZE(_dcmds));
strcpy(_dcmds[_dcmd_count].name, cmdname);
_dcmds[_dcmd_count].function = pointer;