[svn:mod_parrot] r496 - mod_parrot/trunk/src
[email protected] Thu, 20 Nov 2008 12:12:57 -0800 (PST)
| Newsgroups | perl.cvs.mod_parrot |
|---|---|
| Message-ID | <[email protected]> |
Author: jhorwitz Date: Thu Nov 20 12:12:56 2008 New Revision: 496 Modified: mod_parrot/trunk/src/mod_parrot.c Log: fix incorrect array indexing in NEXT_HANDLER_MODULE Modified: mod_parrot/trunk/src/mod_parrot.c ============================================================================== --- mod_parrot/trunk/src/mod_parrot.c (original) +++ mod_parrot/trunk/src/mod_parrot.c Thu Nov 20 12:12:56 2008 @@ -38,7 +38,7 @@ #define MODPARROT_VERSION "0.4" -#define NEXT_HANDLER_MODULE(x) (mpcfg->handler_modules[x] ? ((module **)mpcfg->module_array->elts)[mpcfg->handler_modules[x]->elts[++(ctxp->module_index)]] : NULL); +#define NEXT_HANDLER_MODULE(x) (mpcfg->handler_modules[x] ? ((module **)mpcfg->module_array->elts)[((int *)mpcfg->handler_modules[x]->elts)[++(ctxp->module_index)]] : NULL); /* declare our module */ extern module AP_MODULE_DECLARE_DATA parrot_module;