🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Modulus bug ?

Started by
0 comments, last by WitchLord 18 years, 5 months ago
Hi, First of All, All my best for this new year ! (and keep up the good work, of course :)) It seems there's a small mistake in as_context.cpp line 1948 (in 2.5.0 WIP2), in the ExecuteNext() function for the BC_MODi operator (%). I think the line : if( *l_sp == 0 ) Should be replaced with : if( divider == 0 ) In fact, using % operator, I always got "Error: Divide by 0" message while right operand was != 0. Happy new year and regards, Lbas
Lbas
Advertisement
You're right! Well spotted.

Good thing I didn't release the final version yet. ;)

Thanks,
Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement