Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Tor Tor
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 831
    • Issues 831
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 31
    • Merge requests 31
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Core
  • TorTor
  • Issues
  • #26283

Closed
Open
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