#include "helpmod_entries.h"
#include "helpmod_alias.h"
-#include "../core/error.c"
+#include "../core/error.h"
#include "helpmod.h"
struct helpmod_parsed_line_struct helpmod_parsed_line;
int helpmod_valid_selection(helpmod_entry state, int selection)
{
if (selection == -1)
- return ((int)state->parent);
+ return ((int)((long)state->parent));
return (selection >= 0 && selection < state->option_count);
}