diff options
| author | Maxim Sobolev <sobomax@FreeBSD.org> | 2009-06-17 06:57:01 +0000 |
|---|---|---|
| committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2009-06-17 06:57:01 +0000 |
| commit | d0ec7bda5851678cebd6c3ea555afc2d5b235177 (patch) | |
| tree | 971b837934b862c080fdfde7b9f01bd282276d89 /net/py-xmlrpc/files/patch-src_rpcUtils.c | |
| parent | - Update to 0.9.3 (diff) | |
Prevent precision loss when passing python's double values. Bump
PORTREVISION.
Diffstat (limited to '')
| -rw-r--r-- | net/py-xmlrpc/files/patch-src_rpcUtils.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net/py-xmlrpc/files/patch-src_rpcUtils.c b/net/py-xmlrpc/files/patch-src_rpcUtils.c new file mode 100644 index 000000000000..dd35fa0ed57b --- /dev/null +++ b/net/py-xmlrpc/files/patch-src_rpcUtils.c @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- src/rpcUtils.c.orig ++++ src/rpcUtils.c +@@ -276,7 +280,7 @@ + double d; + + d = PyFloat_AS_DOUBLE(value); +- snprintf(buff, 255, "%f", d); ++ snprintf(buff, 255, "%.17f", d); + if ((buffConstant(sp, "<double>") == NULL) + or (buffConcat(sp, buff) == NULL) + or (buffConstant(sp, "</double>") == NULL)) |
