mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-03 19:22:27 +00:00
Fix strtol
This commit is contained in:
parent
1df136323b
commit
5eddadafbd
17 changed files with 83 additions and 105 deletions
|
@ -49,3 +49,7 @@ TEST(strtoimax, testTwosBane) {
|
|||
EXPECT_EQ(((uintmax_t)0x8000000000000000) << 64 | 0x0000000000000000,
|
||||
strtoimax("0x80000000000000000000000000000000", NULL, 0));
|
||||
}
|
||||
|
||||
TEST(strtol, neghex) {
|
||||
ASSERT_EQ(-16, strtol("0xfffffffffffffff0", NULL, 0));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue