drm_rmdraw: Declare id and idx as signed so testing for < 0 works as intended.
authorFelix Kühling <fxkuehl@gmx.de>
Mon, 2 Oct 2006 08:50:40 +0000 (10:50 +0200)
committerMichel Dänzer <michel@tungstengraphics.com>
Mon, 2 Oct 2006 09:21:10 +0000 (11:21 +0200)
(cherry picked from d58389968124191a546a14b42ef84edc224be23d commit)

shared-core/drm_drawable.c

index 5e2fc86..d203b24 100644 (file)
@@ -132,7 +132,8 @@ int drm_rmdraw(DRM_IOCTL_ARGS)
 {
        DRM_DEVICE;
        drm_draw_t draw;
-       unsigned int id, idx, shift;
+       int id, idx;
+       unsigned int shift;
        unsigned int irqflags;
        u32 *bitfield = dev->drw_bitfield;
        unsigned int bitfield_length = dev->drw_bitfield_length;