chiark
/
gitweb
/
~mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8c3c088
)
math/mpx-mul4-test.c: Set `dstr' length correctly in conversion function.
author
Mark Wooding
<mdw@distorted.org.uk>
Thu, 26 May 2016 08:26:09 +0000
(09:26 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Wed, 12 Apr 2017 10:55:48 +0000
(11:55 +0100)
math/mpx-mul4-test.c
patch
|
blob
|
blame
|
history
diff --git
a/math/mpx-mul4-test.c
b/math/mpx-mul4-test.c
index 355c7cebe595675903d3a96738153ee9d7a10067..5d5b4d58e48ecc64c0d12c072ffaa905754b1ec9 100644
(file)
--- a/
math/mpx-mul4-test.c
+++ b/
math/mpx-mul4-test.c
@@
-116,7
+116,7
@@
TESTOPS(DECLSTUB)
\
type_hex.cvt(buf, &dd); \
if (dd.len != N(x->w)*nby) die(1, "invalid length for " #ty); \
\
type_hex.cvt(buf, &dd); \
if (dd.len != N(x->w)*nby) die(1, "invalid length for " #ty); \
- dstr_ensure(d, sizeof(*x));
\
+ dstr_ensure(d, sizeof(*x));
d->len = sizeof(*x);
\
x = (ty *)d->buf; p = (const octet *)dd.buf; \
for (i = 0; i < N(x->w); i++) { x->w[i] = ld(p); p += nby; } \
dstr_destroy(&dd); \
x = (ty *)d->buf; p = (const octet *)dd.buf; \
for (i = 0; i < N(x->w); i++) { x->w[i] = ld(p); p += nby; } \
dstr_destroy(&dd); \