summaryrefslogtreecommitdiffstats
path: root/Modules/_decimal/libmpdec/context.c
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2020-06-05 17:43:01 (GMT)
committerGitHub <noreply@github.com>2020-06-05 17:43:01 (GMT)
commit087d612efebe7c64e5f079b07e0454111859830e (patch)
tree9101b04c780e36ef3ae594efe662dff179fbf9ed /Modules/_decimal/libmpdec/context.c
parent3ad52e366fea37b02a3f619e6b7cffa7dfbdfa2e (diff)
downloadcpython-087d612efebe7c64e5f079b07e0454111859830e.zip
cpython-087d612efebe7c64e5f079b07e0454111859830e.tar.gz
cpython-087d612efebe7c64e5f079b07e0454111859830e.tar.bz2
bpo-40874: Update to libmpdec-2.5.0 (GH-20652)
Diffstat (limited to 'Modules/_decimal/libmpdec/context.c')
-rw-r--r--Modules/_decimal/libmpdec/context.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/_decimal/libmpdec/context.c b/Modules/_decimal/libmpdec/context.c
index 24c7b89..9cbc205 100644
--- a/Modules/_decimal/libmpdec/context.c
+++ b/Modules/_decimal/libmpdec/context.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008-2016 Stefan Krah. All rights reserved.
+ * Copyright (c) 2008-2020 Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -27,14 +27,16 @@
#include "mpdecimal.h"
+
+#include <signal.h>
#include <stdio.h>
#include <string.h>
-#include <signal.h>
void
-mpd_dflt_traphandler(mpd_context_t *ctx UNUSED)
+mpd_dflt_traphandler(mpd_context_t *ctx)
{
+ (void)ctx;
raise(SIGFPE);
}
@@ -282,5 +284,3 @@ mpd_addstatus_raise(mpd_context_t *ctx, uint32_t flags)
mpd_traphandler(ctx);
}
}
-
-