diff options
author | Pauli Nieminen <suokkos@gmail.com> | 2009-07-20 18:40:49 +0300 |
---|---|---|
committer | Pauli Nieminen <suokkos@gmail.com> | 2009-08-25 02:50:07 +0300 |
commit | ba94f61638bfecc14101cfb4750faa411419a8e1 (patch) | |
tree | e860c1a1d9bb8d60cbc22417b90df2cd7ece26e8 | |
parent | 68e5c17606dfe625dafa6039f2c021a6e551cb9f (diff) |
Fix signed/unsigned comparison warning
-rw-r--r-- | libdrm/radeon/radeon_cs_gem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libdrm/radeon/radeon_cs_gem.c b/libdrm/radeon/radeon_cs_gem.c index a0db53bb..43b136f4 100644 --- a/libdrm/radeon/radeon_cs_gem.c +++ b/libdrm/radeon/radeon_cs_gem.c @@ -354,9 +354,10 @@ static void cs_gem_print(struct radeon_cs *cs, FILE *file) unsigned opcode; unsigned reg; unsigned cnt; - unsigned int i, j; + unsigned i,j; for (i = 0; i < cs->cdw;) { + /* First word in CP is not counted so has to add one to value */ cnt = CP_PACKET_GET_COUNT(cs->packets[i]) + 1; switch (CP_PACKET_GET_TYPE(cs->packets[i])) { case PACKET_TYPE0: |