diff options
author | Edward Hervey <bilboed@bilboed.com> | 2009-04-11 15:04:41 +0200 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2010-12-03 12:03:42 +0100 |
commit | 6aa8ca37eeb9debfa6919741a023250bf278248f (patch) | |
tree | 7e0e54a57d71bc7a358cdef2341ce3357ace0f81 /gst/gstminiobject.c | |
parent | 5519b1fcb1e36dbf8eeac87b803bc2dcea33af14 (diff) |
micro-optim: if (x) is cheaper than if (x > 0) for unsigned integers
Diffstat (limited to 'gst/gstminiobject.c')
-rw-r--r-- | gst/gstminiobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/gstminiobject.c b/gst/gstminiobject.c index 8d9d7f19b..3bacaf290 100644 --- a/gst/gstminiobject.c +++ b/gst/gstminiobject.c @@ -357,7 +357,7 @@ void gst_mini_object_unref (GstMiniObject * mini_object) { g_return_if_fail (GST_IS_MINI_OBJECT (mini_object)); - g_return_if_fail (mini_object->refcount > 0); + g_return_if_fail (mini_object->refcount); GST_CAT_TRACE (GST_CAT_REFCOUNTING, "%p unref %d->%d", mini_object, |