From eed63954f38915b707e8e35684a20c04073c6bcf Mon Sep 17 00:00:00 2001 From: Bill Stoddard Date: Fri, 20 Apr 2001 19:11:21 +0000 Subject: [PATCH] struct_ptr is a void*. The Windows compiler doesn't like it when you try to do pointer math on a void*. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88905 13f79535-47bb-0310-9956-ffa450edef68 --- server/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/config.c b/server/config.c index 52fe13ede12..689b3477779 100644 --- a/server/config.c +++ b/server/config.c @@ -1069,7 +1069,7 @@ AP_DECLARE_NONSTD(const char *) ap_set_int_slot(cmd_parms *cmd, char *error_str = NULL; int offset = (int) (long) cmd->info; - *(int *) (struct_ptr + offset) = strtol(arg, &endptr, 10); + *(int *) ((char*)struct_ptr + offset) = strtol(arg, &endptr, 10); if ((*arg == '\0') || (*endptr != '\0')) { error_str = apr_psprintf(cmd->pool, -- 2.47.3