sane-project-website/old-archive/1998-07/0155.html

55 wiersze
2.3 KiB
HTML

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

<!-- received="Sun Jul 26 04:06:07 1998 PDT" -->
<!-- sent="Sun, 26 Jul 1998 13:04:28 +0200 (CEST)" -->
<!-- name="Didier Carlier" -->
<!-- email="carlierd@acm.org" -->
<!-- subject="Re: problems with sgi/umax" -->
<!-- id="" -->
<!-- inreplyto="35B8D248.1C15E7BE@wolfsburg.de" -->
<title>sane-devel: Re: problems with sgi/umax</title>
<h1>Re: problems with sgi/umax</h1>
<b>Didier Carlier</b> (<a href="mailto:carlierd@acm.org"><i>carlierd@acm.org</i></a>)<br>
<i>Sun, 26 Jul 1998 13:04:28 +0200 (CEST)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#155">[ date ]</a><a href="index.html#155">[ thread ]</a><a href="subject.html#155">[ subject ]</a><a href="author.html#155">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0156.html">Norman Uhlmann: "segfault with Microtek Scanmaker 330"</a>
<li> <b>Previous message:</b> <a href="0154.html">Dave Restall - System Administrator: "PIE (SCANACE) won't release technical info"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
On 24-Jul-98 Oliver Rauch wrote:<br>
<i>&gt; Hi Didier,</i><br>
<i>&gt; </i><br>
<i>&gt; it looks like the modulo(%) function:</i><br>
<i>&gt; </i><br>
<i>&gt; s-&gt;row_bufsize - (s-&gt;row_bufsize % row_len)</i><br>
<i>&gt; </i><br>
<i>&gt; makes problems with such big arguments (8*1024*1024)</i><br>
<i>&gt; and returns 0 in the described case.</i><br>
<i>&gt; </i><br>
<i>&gt; I replaced it by a (long)-integer division in the umax-backend.</i><br>
<p>
Strange, I can't reproduce that here (egcs + pentium). As long as<br>
s-&gt;row_bufsize fits on 32 bits, the result looks ok.<br>
<p>
Does that change fixes the problem reported by Chinedum Osuji ?<br>
<p>
Didier<br>
<p>
<pre>
--
Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a>
To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0156.html">Norman Uhlmann: "segfault with Microtek Scanmaker 330"</a>
<li> <b>Previous message:</b> <a href="0154.html">Dave Restall - System Administrator: "PIE (SCANACE) won't release technical info"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>