Event Code Problem

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Event Code Problem

      Hiya,

      I'm incorporating the event system described in the book (2ed). The compiler throws out a warning in EventType::hash_name() on the line that reads while( -k ) - warning C4146. k is an unsigned long, so the result of -k is still unsigned.

      Is this by design? If so I can just disable the warning temporarily.

      Thanks for any help :)

      [Edit] On another note, the 2.3 source code download doesn't seem to be working at the moment. It downloads an empty file...?

      The post was edited 1 time, last by beebs1 ().

    • RE: Event Code Problem

      C4146 is a warning about using the unary sign operator on an unsigned type - it looks like somehow while (--k) got changed to while (-k).

      Oh - and I just gave the download a test, and of course it worked for me. Give it another try maybe? Or perhaps use a different browser - or tweak you computer security settings - it is an EXE file that some virus scanners might balk at.
      Mr.Mike
      Author, Programmer, Brewer, Patriot