summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Kühling <fxkuehl@gmx.de>2006-10-02 10:50:40 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2006-10-02 11:21:10 +0200
commit58a23d193f7d25d23c76a58c192c814a415a843b (patch)
tree7f45c949bb856e400c57a278682d4380635386c8
parent8e908eaf50d5331ee875fefbf793dbe07d99786a (diff)
drm_rmdraw: Declare id and idx as signed so testing for < 0 works as intended.
(cherry picked from d58389968124191a546a14b42ef84edc224be23d commit)
-rw-r--r--shared-core/drm_drawable.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shared-core/drm_drawable.c b/shared-core/drm_drawable.c
index 5e2fc86c..d203b244 100644
--- a/shared-core/drm_drawable.c
+++ b/shared-core/drm_drawable.c
@@ -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;