Fixed undefined operation warnings.

Henning Meier-Geinitz <henning@meier-geinitz.de>
DEVEL_2_0_BRANCH-1
Henning Geinitz 2002-01-23 20:37:46 +00:00
rodzic 934bd8acf5
commit 300f9c8f91
2 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -4571,7 +4571,8 @@ output_data (Mustek_Scanner *s, FILE *fp,
{ {
while (ptr != ptr_end) while (ptr != ptr_end)
{ {
*ptr++ = ~*ptr; (*ptr) = ~(*ptr);
ptr++;
/* need to revert bit direction */ /* need to revert bit direction */
*ptr= ((*ptr & 0x80) >> 7) + ((*ptr & 0x40) >> 5) *ptr= ((*ptr & 0x80) >> 7) + ((*ptr & 0x40) >> 5)
+ ((*ptr & 0x20) >> 3) + ((*ptr & 0x10) >> 1) + ((*ptr & 0x20) >> 3) + ((*ptr & 0x10) >> 1)
@ -4581,7 +4582,10 @@ output_data (Mustek_Scanner *s, FILE *fp,
} }
else else
while (ptr != ptr_end) while (ptr != ptr_end)
*ptr++ = ~*ptr; {
(*ptr) = ~(*ptr);
ptr++;
}
} }
if (strcmp (s->val[OPT_SOURCE].s, "Automatic Document Feeder") == 0) if (strcmp (s->val[OPT_SOURCE].s, "Automatic Document Feeder") == 0)
{ {

Wyświetl plik

@ -1,5 +1,8 @@
CHANGES for the SANE Mustek backend CHANGES for the SANE Mustek backend
2002-01-23:
* Fixed undefined operation warnings.
2002-01-20: 2002-01-20:
* Released Mustek backend 1.0-118. * Released Mustek backend 1.0-118.