Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Classification::GetFlags() method. Fixed bug in SetClasification (
#1). Added more tests for setting Point with classification flags.
- Loading branch information
Showing
3 changed files
with
37 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f34666e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c.GetFlags(): 01000000
m_default.SetClassification(c);
m_default.GetClassifcation().GetFlags(): 00000000
f34666e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can't work can it?
to_ulong() == 32bits, but we only have 8 bits of space here.
f34666e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can't work can it?
to_ulong() == 32bits, but we only have 8 bits of space here.
f34666e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The cast does the clamping, doesn't it?
I have made a quick test https://gist.github.com/1320853