sdp: Fix ACCEPTABLE_CHAR() macro to work with signed and unsigned chars

This commit is contained in:
Sebastian Dröge 2010-09-17 11:46:05 +02:00
parent 3328f89c49
commit 0cb380e710

View file

@ -598,7 +598,7 @@ static const guchar acceptable[96] = {
static const gchar hex[16] = "0123456789ABCDEF";
#define ACCEPTABLE_CHAR(a) ((a)>=32 && (a)<128 && acceptable[(a)-32])
#define ACCEPTABLE_CHAR(a) (((guchar)(a))>=32 && ((guchar)(a))<128 && acceptable[(((guchar)a))-32])
/**
* gst_sdp_message_as_uri: