| … | … | @@ -434,7 +434,7 @@ int AtomSpace::depth(const AtomSpace* as) const |
| 434 | 434 | for (const AtomSpacePtr& base : _environ) |
| 435 | 435 | { |
| 436 | 436 | int d = base->depth(as); |
| 437 | if (0 < d) return d+1; | |
| 437 | if (0 <= d) return d+1; | |
| 438 | 438 | } |
| 439 | 439 | return -1; |
| 440 | 440 | } |
| … | … | @@ -448,7 +448,7 @@ int AtomSpace::depth(const Handle& atom) const |
| 448 | 448 | for (const AtomSpacePtr& base : _environ) |
| 449 | 449 | { |
| 450 | 450 | int d = base->depth(as); |
| 451 | if (0 < d) return d+1; | |
| 451 | if (0 <= d) return d+1; | |
| 452 | 452 | } |
| 453 | 453 | return -1; |
| 454 | 454 | } |