Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • T Trilinos
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 936
    • Issues 936
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • James Willenbring
  • Trilinos
  • Issues
  • #1356

Closed
Open
Created May 23, 2017 by James Willenbring@jmwilleMaintainer

Teko: Assigning -1 to size_t

Created by: mhoemmen

@trilinos/teko I was testing Teko and noticed several build warnings like this (in other files too):

.../Trilinos/packages/teko/src/Tpetra/Teko_InterlacedTpetra.cpp(259): warning: integer conversion resulted in a change of sign

I looked at the line in question, and it directly assigns -1 to a size_t variable. This is probably meant as a flag "invalid" value. If you want that, you may use Teuchos::OrdinalTraits<size_t>::invalid().

Assignee
Assign to
Time tracking