<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 46: Modulo bug due to internal multiplication (from GIMP repo)</title><link>https://sourceforge.net/p/tinyscheme/bugs/46/</link><description>Recent changes to 46: Modulo bug due to internal multiplication (from GIMP repo)</description><atom:link href="https://sourceforge.net/p/tinyscheme/bugs/46/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 29 Sep 2020 22:18:44 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/tinyscheme/bugs/46/feed.rss" rel="self" type="application/rss+xml"/><item><title>#46 Modulo bug due to internal multiplication (from GIMP repo)</title><link>https://sourceforge.net/p/tinyscheme/bugs/46/?limit=25#0bec</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hm. rev77 is where the bug was introduced. Sorry, I poorly explained. Bug is due to overflow in multiplication, which may give negative with two positive numbers, for example.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodion Gorkovenko</dc:creator><pubDate>Tue, 29 Sep 2020 22:18:44 -0000</pubDate><guid>https://sourceforge.net12756024afdedce195ebd08d752945301657973b</guid></item><item><title>#46 Modulo bug due to internal multiplication (from GIMP repo)</title><link>https://sourceforge.net/p/tinyscheme/bugs/46/?limit=25#be7f</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Kevin, sorry, but there is some mystery. I think I see this in current trunk:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://sourceforge.net/p/tinyscheme/code/HEAD/tree/trunk/scheme.c#l475"&gt;https://sourceforge.net/p/tinyscheme/code/HEAD/tree/trunk/scheme.c#l475&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodion Gorkovenko</dc:creator><pubDate>Tue, 29 Sep 2020 22:15:51 -0000</pubDate><guid>https://sourceforge.netf879146fd898a8eb22f93818dcaa5c9381a308bf</guid></item><item><title>#46 Modulo bug due to internal multiplication (from GIMP repo)</title><link>https://sourceforge.net/p/tinyscheme/bugs/46/?limit=25#7788</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;You must be using an old version of TinyScheme and/or GIMP. This was fixed in TinyScheme around 9 years ago in r77. The num_mod() routine in both the SF version of TinyScheme and the version included with GIMP are the same. That gitlab commit is wrong in that the R5RS clearly states the sign of the result is the sign of the second operand.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kevin Cozens</dc:creator><pubDate>Tue, 29 Sep 2020 19:45:11 -0000</pubDate><guid>https://sourceforge.net8ae1072b283c328b4fdd937246d3bd15eebc60f8</guid></item><item><title>Modulo bug due to internal multiplication (from GIMP repo)</title><link>https://sourceforge.net/p/tinyscheme/bugs/46/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Found this fixed in gimp repo, but not here.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;modulo&lt;/code&gt; may give surprising results, e.g. &lt;code&gt;(modulo 3000000000 4000000001)&lt;/code&gt; shows &lt;code&gt;7000000001&lt;/code&gt; (instead of &lt;code&gt;3000000000&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;Fix is one-line change:&lt;br/&gt;
&lt;a href="https://gitlab.gnome.org/GNOME/gimp/-/commit/f665e4cfa91facf38970d93f9e8e835e6ea1734d" rel="nofollow"&gt;https://gitlab.gnome.org/GNOME/gimp/-/commit/f665e4cfa91facf38970d93f9e8e835e6ea1734d&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This seems correct, but due to my limited knowledge of scheme I leave it to be counter-checked by some wiser.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodion Gorkovenko</dc:creator><pubDate>Tue, 29 Sep 2020 17:46:55 -0000</pubDate><guid>https://sourceforge.net186658956399542f6192b75d4a3880c8d1c53774</guid></item></channel></rss>