error in template code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Stellarium |
Fix Released
|
Medium
|
Emmanuel |
Bug Description
A compilation error appears while compiling a custom plugin which uses otherwise unused template code.
The error message is:
stellarium-
This can be traced back to a typo in VecMath.hpp file:
691 template<class T> void Vector4<
692 {
693 v[0] += a.v[0]; v[1] += a.v[1]; v[2] += a.v[2]; v[3] += a.v[3];
694 }
695
696 template<class T> void Vector4<
697 {
698 v[0] -= a.v[0]; v[1] -= a.v[1]; v[2] -= a.v[2]; v[3] -= a/v[3];
699 }
700
At line 698 there is a "/" instead of a "." in the computation of v[3].
Related branches
- Stellarium: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedsrc/core/VecMath.hpp (+1/-1)
Changed in stellarium: | |
milestone: | none → 0.12.2 |
assignee: | nobody → Emmanuel (hacker-emmanuel) |
status: | New → Fix Committed |
importance: | Undecided → Medium |
Changed in stellarium: | |
status: | Fix Committed → Fix Released |