Skip to content

Connections: adaptSegment make const input,#292

Merged
ctrl-z-9000-times merged 1 commit into
masterfrom
connections_segfault
Mar 2, 2019
Merged

Connections: adaptSegment make const input,#292
ctrl-z-9000-times merged 1 commit into
masterfrom
connections_segfault

Conversation

@breznak
Copy link
Copy Markdown
Member

@breznak breznak commented Mar 2, 2019

add check for segfault from CP

add check for segfault from CP
@breznak breznak added the code code enhancement, optimization, cleanup..programmer stuff label Mar 2, 2019
}

const vector<Synapse> &Connections::synapsesForSegment(Segment segment) const {
NTA_ASSERT(segment < segments_.size()) << "Segment out of bounds! " << segment;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NTA_CHECK would be ideal, but this is a low-level, performance critical method, so we probably can't afford that luxury.

@breznak breznak added the ready label Mar 2, 2019
@breznak breznak self-assigned this Mar 2, 2019
Copy link
Copy Markdown
Collaborator

@ctrl-z-9000-times ctrl-z-9000-times left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the kind of PR that's easy to review & merge!

@ctrl-z-9000-times ctrl-z-9000-times merged commit 3b1b11c into master Mar 2, 2019
@ctrl-z-9000-times ctrl-z-9000-times deleted the connections_segfault branch March 2, 2019 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code code enhancement, optimization, cleanup..programmer stuff ready

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants