Date: 2013-09-17 16:06:11 +0000 (Tue, 17 Sep 2013)
Removes qtst dependence on signed type
For CES type A-2 controllers, the 16th bit of the control status
register contains the Q status bit. Tests of this bit used to assume
that this bit was a sign bit in a signed integer by comparing the
total 16-bit word against zero. However, the camread16 macro returns
an unsigned number and this qtst always returned a value greater than
or equal to zero (i.e. qtst is always returning true). This is fixed.
Should verify that the BiRa controller data layout returned is identical to the
This fixes a bug introduced in rev. 2832.
--- trunk/nextgen/sbs/vmemodules/cesmacros.h 2013-09-16 16:48:11 UTC (rev 3153)
+++ trunk/nextgen/sbs/vmemodules/cesmacros.h 2013-09-17 16:06:11 UTC (rev 3154)
@@ -52,7 +52,7 @@
-#define qtst(b) (camread16((b),0,29,0,0) < 0)
+#define qtst(b) ((camread16((b),0,29,0,0) & 0X8000) != 0)
#define xtst(b) ((camread16((b),0,29,0,0) & 0X4000) != 0)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.