Commit 643f5888 authored by Niels Möller's avatar Niels Möller
Browse files

(do_command_4): Use CAST_SUBTYPE, in case

command_4 is inherited.
(do_command_3): Use CAST_SUBTYPE, in case command_3 is inherited.
(do_command_2): Use CAST_SUBTYPE, command_2 is inherited by
sexp_print_command.

Rev: src/command.c:1.46
parent 41d920a2
......@@ -157,7 +157,7 @@ do_command_2(struct command *s,
struct command_continuation *c,
struct exception_handler *e UNUSED)
{
CAST(command_2, self, s);
CAST_SUBTYPE(command_2, self, s);
COMMAND_RETURN(c, make_command_2_invoke(self, a1));
}
......@@ -235,7 +235,7 @@ do_command_3(struct command *s,
struct command_continuation *c,
struct exception_handler *e UNUSED)
{
CAST(command_3, self, s);
CAST_SUBTYPE(command_3, self, s);
COMMAND_RETURN(c, make_command_3_invoke(self, a1));
}
......@@ -353,7 +353,7 @@ do_command_4(struct command *s,
struct command_continuation *c,
struct exception_handler *e UNUSED)
{
CAST(command_4, self, s);
CAST_SUBTYPE(command_4, self, s);
COMMAND_RETURN(c, make_command_4_invoke(self, a1));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment