Commit 11a22ac2 authored by Bill Stoddard's avatar Bill Stoddard
Browse files

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
parent a64ac14e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,