+val doesn't coerce to int. Use `depth|0` for that.