]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - mood.c
Implement pattern matching for com_touch().
[paraslash.git] / mood.c
diff --git a/mood.c b/mood.c
index 83c7fa65495e2759ecf9122d2bd4428daf15df04..54867e582f4f4b1997d7b86dfb0e71cbca67dc24 100644 (file)
--- 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 {