Commit b87bf16c b87bf16c19d7067f2e940a7f1bcddc9de67743f7 by Sergey Poznyakoff

Fixed erroneous typecasts.

1 parent c12fc767
...@@ -528,15 +528,15 @@ parser_init (struct parser *parser, const struct argp *argp, ...@@ -528,15 +528,15 @@ parser_init (struct parser *parser, const struct argp *argp,
528 if (! parser->storage) 528 if (! parser->storage)
529 return ENOMEM; 529 return ENOMEM;
530 530
531 parser->groups = parser->storage; 531 parser->groups = (struct group *) parser->storage;
532 /* To please Watcom CC 532 /* To please Watcom CC
533 parser->child_inputs = parser->storage + GLEN; 533 parser->child_inputs = parser->storage + GLEN;
534 parser->long_opts = parser->storage + GLEN + CLEN; 534 parser->long_opts = parser->storage + GLEN + CLEN;
535 parser->short_opts = parser->storage + GLEN + CLEN + LLEN; 535 parser->short_opts = parser->storage + GLEN + CLEN + LLEN;
536 */ 536 */
537 parser->child_inputs = (void **)(parser->storage) + GLEN; 537 parser->child_inputs = (void **)((char*) parser->storage + GLEN);
538 parser->long_opts = (struct option *)(parser->storage) + GLEN + CLEN; 538 parser->long_opts = (struct option *)((char*) parser->storage + GLEN + CLEN);
539 parser->short_opts = (char *)(parser->storage) + GLEN + CLEN + LLEN; 539 parser->short_opts = (char*) parser->storage + GLEN + CLEN + LLEN;
540 540
541 memset (parser->child_inputs, 0, szs.num_child_inputs * sizeof (void *)); 541 memset (parser->child_inputs, 0, szs.num_child_inputs * sizeof (void *));
542 parser_convert (parser, argp, flags); 542 parser_convert (parser, argp, flags);
......