Fix scanf integer parsing.

This commit is contained in:
Jonas 'Sortie' Termansen 2016-01-18 14:42:53 +01:00
parent 2e9153cdb9
commit dbe6b32b1f
1 changed files with 2 additions and 2 deletions

View File

@ -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;