Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37755056
en ru br
ALT Linux repositórios
S:1.2.1-alt2
5.0: 1.0.19-alt2
4.1: 1.0.19-alt1
4.0: 1.0.18-alt4.M40.1
3.0: 1.0.16-alt2
+backports:1.0.17-alt0.M30.1

Group :: Gráficos
RPM: sane

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: sane-backends-1.0.18-logical_vs_binary.patch
Download


--- sane-backends-1.0.18/backend/canon.c.logical_vs_binary	2006-06-19 23:07:52.000000000 +0200
+++ sane-backends-1.0.18/backend/canon.c	2007-04-24 09:08:56.000000000 +0200
@@ -246,12 +246,12 @@
     TPU_STAT_INACTIVE : TPU_STAT_NONE;
   if (dev->tpu.Status == SANE_TRUE)	/* TPU available */
     {
-      dev->tpu.Status = (tbuf[2 + 4 + 5] && 0x04) ?
+      dev->tpu.Status = (tbuf[2 + 4 + 5] & 0x04) ?
 	TPU_STAT_INACTIVE : TPU_STAT_ACTIVE;
     }
-  dev->tpu.ControlMode = tbuf[3 + 4 + 5] && 0x03;
+  dev->tpu.ControlMode = tbuf[3 + 4 + 5] & 0x03;
   dev->tpu.Transparency = tbuf[4 + 4 + 5] * 256 + tbuf[5 + 4 + 5];
-  dev->tpu.PosNeg = tbuf[6 + 4 + 5] && 0x01;
+  dev->tpu.PosNeg = tbuf[6 + 4 + 5] & 0x01;
   dev->tpu.FilmType = tbuf[7 + 4 + 5];
 
   DBG (11, "TPU Status: %d\n", dev->tpu.Status);
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009