summaryrefslogtreecommitdiff
path: root/tests/unistr/test-u16-mbtouc.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unistr/test-u16-mbtouc.h')
-rw-r--r--tests/unistr/test-u16-mbtouc.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/unistr/test-u16-mbtouc.h b/tests/unistr/test-u16-mbtouc.h
index 5c33948a..30c85d7f 100644
--- a/tests/unistr/test-u16-mbtouc.h
+++ b/tests/unistr/test-u16-mbtouc.h
@@ -1,5 +1,5 @@
/* Test of u16_mbtouc() and u16_mbtouc_unsafe() functions.
- Copyright (C) 2010-2024 Free Software Foundation, Inc.
+ Copyright (C) 2010-2026 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -33,10 +33,9 @@ test_function (int (*my_u16_mbtouc) (ucs4_t *, const uint16_t *, size_t))
/* Test ISO 646 unit input. */
{
- ucs4_t c;
uint16_t buf[1];
- for (c = 0; c < 0x80; c++)
+ for (ucs4_t c = 0; c < 0x80; c++)
{
buf[0] = c;
uc = 0xBADFACE;