Jump to content
  • Advertisement

Trienco

Member
  • Content Count

    2416
  • Joined

  • Last visited

Community Reputation

2555 Excellent

About Trienco

  • Rank
    Contributor
  1. Nobody mentioning the bug in printf (and how it probably shouldn't be used in the first place)?   %ld = long, but the variable is int. This will work great, until you build that code as a 64bit build on Unix, where a long is 64bit and int is 32bit. Most compilers should even warn about this.   Either use %d or (safer) use cout instead of printf.
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!