X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=mood.c;h=54867e582f4f4b1997d7b86dfb0e71cbca67dc24;hp=83c7fa65495e2759ecf9122d2bd4428daf15df04;hb=1a4b98e797ab5ebb1ee1daa707aa0d520379ccc9;hpb=e3656c6f9daed6139c36ae9b042562c0c5b66013 diff --git a/mood.c b/mood.c index 83c7fa65..54867e58 100644 --- a/mood.c +++ b/mood.c @@ -101,7 +101,7 @@ struct mood_item { /** The data structure computed by the mood parser. */ void *parser_data; /** The given score value, or zero if none was given. */ - long score_arg; + int32_t score_arg; /** Non-zero if random scoring was requested. */ int random_score; /** Whether the "not" keyword was given in the mood line. */ @@ -418,7 +418,7 @@ static int parse_mood_line(char *mood_line, void *data) goto out; if (strcmp(*w, "random")) { mi->random_score = 0; - ret = para_atol(*w, &mi->score_arg); + ret = para_atoi32(*w, &mi->score_arg); if (ret < 0) goto out; } else {