commit | f382e530159b42de9120ddecaf57d540471f5962 | [log] [tgz] |
---|---|---|
author | Eric Fiselier <eric@efcs.ca> | Thu Mar 29 01:18:53 2018 +0000 |
committer | Eric Fiselier <eric@efcs.ca> | Thu Mar 29 01:18:53 2018 +0000 |
tree | 9ca32ffdec51133a7cdb0a9bd6c4a98d8d35637d | |
parent | 245b3a06a17b95cd11ef9d59e74d35095d5b7c14 [diff] |
Fix PR36914 - num_get::get(unsigned) incorrectly handles negative numbers. This patch corrects num_get for unsigned types to support strings with a leading `-` character. According to the standard the number should be parsed as an unsigned integer and then negated. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@328751 91177308-0d34-0410-b5e6-96231b3b80d8