SHA256
1
0
forked from pool/lal
lal/lal-implicit-conversion-XLALError.patch
2020-06-08 14:18:25 +00:00

14 lines
570 B
Diff

Index: lal-6.22.0/lib/std/XLALError.h
===================================================================
--- lal-6.22.0.orig/lib/std/XLALError.h
+++ lal-6.22.0/lib/std/XLALError.h
@@ -698,7 +698,7 @@ void XLALError(const char *func,
* <li> \b ... (Optional) Additional arguments for printf-like format.
* </ul>
*/
-#define XLAL_ERROR(...) _XLAL_ERROR_IMPL_(return XLAL_FAILURE, __VA_ARGS__)
+#define XLAL_ERROR(...) _XLAL_ERROR_IMPL_(return (LALTYPECODE)XLAL_FAILURE, __VA_ARGS__)
/**
* Macro to invoke a failure from a XLAL routine returning a pointer.