From: fliep Date: Sun, 24 May 2009 08:32:12 +0000 (+0000) Subject: Fixed assertion in glk_stream_set_position() X-Git-Tag: v0.9~386 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=05270a9e29907b1f7d3c40b302085fc0e3116f07;p=projects%2Fchimara%2Fchimara.git Fixed assertion in glk_stream_set_position() --- diff --git a/libchimara/strio.c b/libchimara/strio.c index 921b75c..a33f13f 100644 --- a/libchimara/strio.c +++ b/libchimara/strio.c @@ -1136,7 +1136,7 @@ glk_stream_set_position(strid_t str, glsi32 pos, glui32 seekmode) { VALID_STREAM(str, return); g_return_if_fail(!(seekmode == seekmode_Start && pos < 0)); - g_return_if_fail(!(seekmode == seekmode_End || pos > 0)); + g_return_if_fail(!(seekmode == seekmode_End && pos > 0)); switch(str->type) {