Revert "sdp: Remove useless check in macro"
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 17 Sep 2010 09:44:29 +0000 (11:44 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 17 Sep 2010 09:44:29 +0000 (11:44 +0200)
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

index ba89275..7e3bbb8 100644 (file)
@@ -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: