• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Silence GCC warning about signed/unsigned comparison (REnamer, a5f6563)

Created 1/14/2008, updated 3/5/2024
  • snippets

The cast here is safe because the int should always be non-negative (confirm that with an assertion) and never large enough to overflow size_t.

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← Teach WOHUDScroller about flipped coordinate systems (REnamer, 56c18f7)
Teach WOHUDTableHeaderCell about flipped coordinate systems (REnamer, f19e388) →

All snippets

Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).