{"comment":{"url":"https://api.github.com/repos/ripple/rippled/comments/9323172","html_url":"https://github.com/ripple/rippled/commit/2199e2911e151913fed919565c1fd21937117da5#commitcomment-9323172","id":9323172,"user":{"login":"miguelportilla","id":1524671,"avatar_url":"https://avatars.githubusercontent.com/u/1524671?v=3","gravatar_id":"","url":"https://api.github.com/users/miguelportilla","html_url":"https://github.com/miguelportilla","followers_url":"https://api.github.com/users/miguelportilla/followers","following_url":"https://api.github.com/users/miguelportilla/following{/other_user}","gists_url":"https://api.github.com/users/miguelportilla/gists{/gist_id}","starred_url":"https://api.github.com/users/miguelportilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguelportilla/subscriptions","organizations_url":"https://api.github.com/users/miguelportilla/orgs","repos_url":"https://api.github.com/users/miguelportilla/repos","events_url":"https://api.github.com/users/miguelportilla/events{/privacy}","received_events_url":"https://api.github.com/users/miguelportilla/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"2199e2911e151913fed919565c1fd21937117da5","created_at":"2015-01-16T22:46:57Z","updated_at":"2015-01-16T22:46:57Z","body":"an alternate possibly more readable solution:\r\n\r\n        if (params.isMember (\"ledger_index_min\"))\r\n        {\r\n            std::int64_t const ledgerMin (params[\"ledger_index_min\"].asInt ());\r\n            uLedgerMin = (ledgerMin >= uValidatedMin) ? ledgerMin : uValidatedMin;\r\n        }\r\n        else\r\n        {\r\n            uLedgerMin = uValidatedMin;\r\n        }\r\n\r\n        if (params.isMember (\"ledger_index_max\"))\r\n        {\r\n            std::int64_t const iLedgerMax (params[\"ledger_index_max\"].asInt ());\r\n            uLedgerMax = (iLedgerMax >= uValidatedMax) ? iLedgerMax : uValidatedMax;\r\n        }\r\n        else\r\n        {\r\n            uLedgerMax = uValidatedMax;\r\n        }"}}