Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » Raster Control
Re: Raster Control [message #15124 is a reply to message #15123] Tue, 01 April 2008 19:08 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
Interesting. If you compile with MingW, and presumably GCC as well, you don't get the error. If you look at iscale:
int iscale(int x, int y, int z)
{
#ifdef __NOASSEMBLY__
	return int(x * (double)y / z);
#else
	__asm
	{
		mov		eax, [x]
		imul	[y]
		idiv	[z]
	}
#endif
}

When using MingW __NOASSEMBLY__ is defined, with MSVC it's not. And only the assembler crashes, even though there is still a clear divide by 0. This really should be fixed.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Job opportunity for Ultimate++ developer
Next Topic: Service/daemon for Ultimate++
Goto Forum:
  


Current Time: Thu Aug 28 11:27:52 CEST 2025

Total time taken to generate the page: 0.06739 seconds