Skip to content

Commit

Permalink
Small fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinH committed Nov 15, 2023
1 parent 0ff163a commit 74f3fc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/tao/pegtl/internal/mmap_file_win32.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ namespace TAO_PEGTL_NAMESPACE::internal
{}

explicit mmap_file_win32( const mmap_file_mmap& file )
: m_size( file.m_size ),
: m_size( file.size ),
m_data( static_cast< const char* >( ::MapViewOfFile( file.handle,
FILE_MAP_READ,
0,
Expand Down
3 changes: 3 additions & 0 deletions src/test/pegtl/ascii_classes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)

#include <cctype>
#include <clocale>

#include "test.hpp"
#include "verify_char.hpp"
Expand All @@ -13,6 +14,8 @@ namespace TAO_PEGTL_NAMESPACE
{
void unit_test()
{
std::setlocale( LC_ALL, "C" );

verify_analyze< alnum >( __LINE__, __FILE__, true, false );
verify_analyze< alpha >( __LINE__, __FILE__, true, false );
verify_analyze< any >( __LINE__, __FILE__, true, false );
Expand Down

0 comments on commit 74f3fc4

Please sign in to comment.