summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/1.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/1.cc')
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/1.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/1.cc
index cd9d1f7f619..c75e4a89821 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/1.cc
@@ -1,6 +1,6 @@
// 2000-08-17 Benjamin Kosnik <bkoz@cygnus.com>
-// Copyright (C) 2000, 2002, 2003 Free Software Foundation
+// Copyright (C) 2000, 2002, 2003, 2006 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -53,11 +53,11 @@ void test01()
const ext_type* e_lit = "black pearl jasmine tea";
const ext_type* efrom_next;
const int_type* i_lit = L"black pearl jasmine tea";
- int size = strlen(e_lit);
+ size_t size = strlen(e_lit);
int_type* i_arr = new int_type[size + 1];
int_type* i_ref = new int_type[size + 1];
- wmemset(i_arr, 0xdeadbeef, size + 1);
- wmemset(i_ref, 0xdeadbeef, size + 1);
+ wmemset(i_arr, static_cast<wchar_t>(0xdeadbeef), size + 1);
+ wmemset(i_ref, static_cast<wchar_t>(0xdeadbeef), size + 1);
int_type* ito_next;
locale loc;