Date: Mon, 11 Oct 1999 13:16:16 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Nicolas Blais cc: djgpp AT delorie DOT com Subject: Re: Please help...matrix problem with Allegro In-Reply-To: <7tr1th$lev$1@nnrp1.deja.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 10 Oct 1999, Nicolas Blais wrote: > > What are the values of res_x and res_y, and how they were decalred? > > > res_x is 640, res_y is 480 and they are decladed in global.hpp called > by in main.cpp. Are they declared ushort as well? > So, according to you, ushort is the problem? What > should they be? longs? They should be longs or unsigned longs, otherwise their multiplication might overflow. (Actually ints will also do, but if you want this to be portable to 16-bit compilers, use long.)