summaryrefslogtreecommitdiffstats
path: root/libdimension
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension')
-rw-r--r--libdimension/dimension/error.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libdimension/dimension/error.h b/libdimension/dimension/error.h
index 858ff96..3204cb2 100644
--- a/libdimension/dimension/error.h
+++ b/libdimension/dimension/error.h
@@ -32,8 +32,9 @@ typedef enum {
} dmnsn_severity;
/* Use this to report an error */
-#define dmnsn_error(severity, str) \
- dmnsn_report_error(severity, __PRETTY_FUNCTION__, __LINE__, str)
+#define dmnsn_error(severity, str) \
+ dmnsn_report_error((dmnsn_severity)severity, __PRETTY_FUNCTION__, __LINE__, \
+ str)
/* Called by dmnsn_error() - don't call directly */
void dmnsn_report_error(dmnsn_severity severity,