Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #26283
Closed (moved) (moved)
Open
Issue created Jun 03, 2018 by rl1987@rl1987

smartlist_len cast to double

When building with DEBUG_SMARTLIST:

src/or/routerlist.c:2767:45: warning: cast from function call of type 'int' to non-matching type 'double' [-Wbad-function-cast]
    return ((double)n_with_descs) / (double)smartlist_len(sl);
                                            ^~~~~~~~~~~~~~~~~
1 warning generated.
src/or/routerlist.c:2767:45: warning: cast from function call of type 'int' to non-matching type 'double' [-Wbad-function-cast]
    return ((double)n_with_descs) / (double)smartlist_len(sl);
                                            ^~~~~~~~~~~~~~~~~
1 warning generated.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking