Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • bob.learn.em bob.learn.em
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • 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
  • bob
  • bob.learn.embob.learn.em
  • Issues
  • #4
Closed
Open
Created Apr 23, 2015 by André Anjos@andre.anjos💬Owner

Wrong error return in BOB_CATCH_MEMBER

Created by: siebenkopf

It appears that for some functions, the error return is -1 and not NULL. Usually, those functions return int and not PyObject*. Particularly, this is the case for the constructors such as: https://github.com/bioidiap/bob.learn.em/blob/master/bob/learn/em/kmeans_trainer.cpp#L119 and for the setter functions such as: https://github.com/bioidiap/bob.learn.em/blob/master/bob/learn/em/kmeans_trainer.cpp#L257

This means that the second value in the BOB_CATCH_MEMBER construct needs to be -1 and not NULL (aka. 0).

@tiagofrepereira2012: could you go through all the files and assure that the error return is correct?

Assignee
Assign to
Time tracking