Permalink
Browse files

bug#3306345: minor typo in Path::resolve() -- missing bang.

git-svn-id: https://jsoncpp.svn.sourceforge.net/svnroot/jsoncpp/trunk@243 1f120ed1-78a5-a849-adca-83f0a9e25bb6
  • Loading branch information...
1 parent 3bbad3b commit 802f7753ea4c0a281f26611832874c8bc9cb836b christopherdunn committed with rjeczalik Jun 22, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/lib_json/json_value.cpp
@@ -1840,7 +1840,7 @@ Path::resolve( const Value &root ) const
const PathArgument &arg = *it;
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...
}
@@ -1873,7 +1873,7 @@ Path::resolve( const Value &root,
const PathArgument &arg = *it;
if ( arg.kind_ == PathArgument::kindIndex )
{
- if ( !node->isArray() || node->isValidIndex( arg.index_ ) )
+ if ( !node->isArray() || !node->isValidIndex( arg.index_ ) )
return defaultValue;
node = &((*node)[arg.index_]);
}

0 comments on commit 802f775

Please sign in to comment.