mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix scanf integer parsing.
This commit is contained in:
parent
2e9153cdb9
commit
dbe6b32b1f
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
/*******************************************************************************
|
||||
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2012, 2014.
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2012, 2014, 2016.
|
||||
|
||||
This file is part of the Sortix C Library.
|
||||
|
||||
|
@ -199,7 +199,7 @@ int vscanf_callback(void* fp,
|
|||
continue;
|
||||
if ( undoable < UNDO_MAX )
|
||||
undodata[undoable++] = ic;
|
||||
if ( c == '-' && !intunsigned && !negint )
|
||||
if ( !intparsed && c == '-' && !intunsigned && !negint )
|
||||
{
|
||||
negint = true;
|
||||
continue;
|
||||
|
|
Loading…
Add table
Reference in a new issue