From 3328f89c494028aeedf84ae8a07b1f32a292f9f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 17 Sep 2010 11:44:29 +0200 Subject: [PATCH] Revert "sdp: Remove useless check in macro" This reverts commit e6a041b69fd21c42651d98cf8a3064e43cecc51c. It's not a useless check, the signedness of "char" and "gchar" is defined by the ABI. --- gst-libs/gst/sdp/gstsdpmessage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/sdp/gstsdpmessage.c b/gst-libs/gst/sdp/gstsdpmessage.c index ba89275b16..7e3bbb8343 100644 --- a/gst-libs/gst/sdp/gstsdpmessage.c +++ b/gst-libs/gst/sdp/gstsdpmessage.c @@ -598,7 +598,7 @@ static const guchar acceptable[96] = { static const gchar hex[16] = "0123456789ABCDEF"; -#define ACCEPTABLE_CHAR(a) ((a)>=32 && acceptable[(a)-32]) +#define ACCEPTABLE_CHAR(a) ((a)>=32 && (a)<128 && acceptable[(a)-32]) /** * gst_sdp_message_as_uri: