http://d.puremagic.com/issues/show_bug.cgi?id=10093
--- Comment #12 from luka8088 <[email protected]> 2013-05-16 13:48:38 PDT --- (In reply to comment #11) > (In reply to comment #8) > > The original issue was: > > > > auto offset = text1.length - text2.length; > > func(offset); > > > > and offset turned out to be around 4294967291 > > > > I was thinking, setting a uint to a negative value is kind of an overflow, > > should it maybe be treated the same way like array bounds and be checked by > > druntime (with optional disabling in production release)? > > No. Just change func's parameter to an int. http://dpaste.dzfl.pl/611c13d7 Yeah, it is easy to solve when you add a writeln and see that unsigned is causing the issue. =) Btw: http://forum.dlang.org/thread/[email protected] -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
