mirror of
https://github.com/ipxe/ipxe
synced 2025-12-21 12:30:20 +03:00
[libc] Allow strtoul() to interpret negative numbers
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -5,7 +5,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
|
||||
#include <stdint.h>
|
||||
#include <assert.h>
|
||||
#include <ctype.h>
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
@@ -18,9 +17,6 @@ static inline int strtoul_base ( const char **pp, int base )
|
||||
{
|
||||
const char *p = *pp;
|
||||
|
||||
while ( isspace ( *p ) )
|
||||
p++;
|
||||
|
||||
if ( base == 0 ) {
|
||||
base = 10;
|
||||
if ( *p == '0' ) {
|
||||
|
||||
Reference in New Issue
Block a user