gif: Explicitly check for integer bounds before conversion to char
@tobiasmue
Submitted by Tobias Mueller Link to original bug (#786489)
Description
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.