gif: Explicitly check for integer bounds before conversion to char
Submitted by Tobias Mueller
I'm not entirely convinced that g_warn_if_fail is the right thing to do. Maybe g_return_val_if_fail (..., -1) is more appropriate. That, however, would change the behaviour of the program, so I went for the former.