chiark / gitweb /
hidrawconv: fix LAST_BITS macro (broken since it was introduced in f7dce805
authorIan Jackson <ian@davenant.greenend.org.uk>
Mon, 25 Apr 2011 20:52:24 +0000 (21:52 +0100)
committerIan Jackson <ian@davenant.greenend.org.uk>
Mon, 25 Apr 2011 20:52:24 +0000 (21:52 +0100)
hostside/hidrawconv.c

index bbb1edc10c753ddd1ae1f4f89faec34874edf643..a642b0b5dbbc18a21d27de36161ccab9da3676a3 100644 (file)
@@ -45,7 +45,7 @@ static LastReports lasts;
     else
 
 #define MSG_BITS(ent)  (msg[(ent)->pos] & (ent)->mask)
-#define LAST_BITS(ent) (msg[(ent)->pos] & (ent)->mask)
+#define LAST_BITS(ent) (last[(ent)->pos] & (ent)->mask)
   /* uint8_t MSG_BITS(EntType *ent);
    * uint8_t LAST_BITS(EntType *ent);
    */