Skip to content

Commit

Permalink
bug#3306345: minor typo in Path::resolve() -- missing bang.
Browse files Browse the repository at this point in the history
git-svn-id: https://jsoncpp.svn.sourceforge.net/svnroot/jsoncpp/trunk@243 1f120ed1-78a5-a849-adca-83f0a9e25bb6
  • Loading branch information
christopherdunn authored and rjeczalik committed Dec 17, 2012
1 parent 3bbad3b commit 802f775
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib_json/json_value.cpp
Expand Up @@ -1840,7 +1840,7 @@ Path::resolve( const Value &root ) const
const PathArgument &arg = *it; const PathArgument &arg = *it;
if ( arg.kind_ == PathArgument::kindIndex ) if ( arg.kind_ == PathArgument::kindIndex )
{ {
if ( !node->isArray() || node->isValidIndex( arg.index_ ) ) if ( !node->isArray() || !node->isValidIndex( arg.index_ ) )
{ {
// Error: unable to resolve path (array value expected at position... // Error: unable to resolve path (array value expected at position...
} }
Expand Down Expand Up @@ -1873,7 +1873,7 @@ Path::resolve( const Value &root,
const PathArgument &arg = *it; const PathArgument &arg = *it;
if ( arg.kind_ == PathArgument::kindIndex ) if ( arg.kind_ == PathArgument::kindIndex )
{ {
if ( !node->isArray() || node->isValidIndex( arg.index_ ) ) if ( !node->isArray() || !node->isValidIndex( arg.index_ ) )
return defaultValue; return defaultValue;
node = &((*node)[arg.index_]); node = &((*node)[arg.index_]);
} }
Expand Down

0 comments on commit 802f775

Please sign in to comment.