Skip to content
Commit 49a10e1c authored by Saleem Abdulrasool's avatar Saleem Abdulrasool
Browse files

system_error: correct ELAST emulation on Windows

ELAST should point to the last valid error string value.  However,
`_sys_nerr` provides the number of elements in the errlist array.  Since
the index is 0-based, this is off-by-one.  Adjust it accordingly.

Thanks to David Majnemer for catching this!

llvm-svn: 291336
parent ee5cb65a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment