CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: TubularX

Search: Search took 0.36 seconds.

  1. Replies
    6
    Views
    2,067

    Re: Validate unsigned operations?

    Yes, it's legal, but I can't recall that I have ever done it on purpose. Maybe that behaviour is defined just because it's better than the alternative of undefined behaviour?

    Writing unit tests is...
  2. Replies
    6
    Views
    2,067

    Validate unsigned operations?

    Hello,

    I don't know if this is a common problem, but I've sometimes encountered unexpected runtime issues caused by unsigned values being decremented below zero.

    Example 1: "unsigned_value +=...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured