-
Notifications
You must be signed in to change notification settings - Fork 3
Skh/safer string ops #122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Skh/safer string ops #122
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -134,7 +134,7 @@ namespace embree | |||||
| } | ||||||
|
|
||||||
| friend embree_ostream operator<<(embree_ostream cout, const QuadraticBezierCurve& a) { | ||||||
| return cout << "QuadraticBezierCurve ( (" << a.u.lower << ", " << a.u.upper << "), " << a.v0 << ", " << a.v1 << ", " << a.v2 << ")"; | ||||||
| return cout << "QuadraticBezierCurve ( (), " << a.v0 << ", " << a.v1 << ", " << a.v2 << ")"; | ||||||
|
||||||
| return cout << "QuadraticBezierCurve ( (), " << a.v0 << ", " << a.v1 << ", " << a.v2 << ")"; | |
| return cout << "QuadraticBezierCurve ( " << a.interval() << ", " << a.v0 << ", " << a.v1 << ", " << a.v2 << ")"; |
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 output operator for PointMi now omits printing the first field. Looking at the PointMi struct definition (lines 224-229), there is no member named 'v0'. The original code trying to print "line.v0" would have caused a compilation error. However, the fix leaves two consecutive commas in the output string, which produces malformed output like "LineMi { , geomID, primID}". Consider either removing the extra comma and space, or replacing the missing field with an actual member that should be printed for debugging purposes.