spack/var/spack/repos/builtin/packages/ssht/float_conversion.patch
Erik Schnetter 38d5d7304d
ssht: Correct recipe (#15217)
- Tell make about the source code path
- Install actual header files, not a wrapper with wrong paths
- Add a patch to prevent compiler warnings
- Improve description
2020-02-28 11:32:41 -06:00

12 lines
261 B
Diff

--- spack-src/src/c/ssht_sampling.h
+++ spack-src/src/c/ssht_sampling.h
@@ -89,7 +89,7 @@
*/
static inline void ssht_sampling_ind2elm(int *el, int *m, int ind) {
- *el = sqrt(ind);
+ *el = lrint(floor(sqrt(ind)));
*m = ind - (*el)*(*el) - (*el);
}