Copyright (C) 2009 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2009.
Copyright (C) 2009 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2009.
FUNC (const UNIT *s1, size_t n1, const UNIT *s2, size_t n2,
uninorm_t nf, int *result)
{
FUNC (const UNIT *s1, size_t n1, const UNIT *s2, size_t n2,
uninorm_t nf, int *result)
{
- norms1 = U_NORMALIZE (nf, s1, n1, NULL, &norms1_length);
+ norms1_length = sizeof (buf1) / sizeof (UNIT);
+ norms1 = U_NORMALIZE (nf, s1, n1, buf1, &norms1_length);
- norms2 = U_NORMALIZE (nf, s2, n2, NULL, &norms2_length);
+ norms2_length = sizeof (buf2) / sizeof (UNIT);
+ norms2 = U_NORMALIZE (nf, s2, n2, buf2, &norms2_length);