<p>I tested this PR on my laptop.</p>
<ul>
<li>
<p>The expansion of macro %{getmem:virt}" finishes with an error. It is because getmem returns 0. This is caused by the fact that function getmem_virt returns SIZE_MAX. After dividing by 1024^2 it is still to high to fit into return_type of getmem (unsigned int).</p>
</li>
<li>
<p>If there is a wrong parameter after '%{getmem:' , then no warning or error is emitted</p>
</li>
<li>
<p>Why you use a new type of built-in macro synatx %{getmem:} instead of something close to the existing built-in macros like %getmem_avail?</p>
</li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/pull/821?email_source=notifications&email_token=ADLPZU5LEQJLL544RREYG63QHDX75A5CNFSM4IOUPT4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5RIAMQ#issuecomment-526549042">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZU47BHSTJY6MW4U465DQHDX75ANCNFSM4IOUPT4A">mute the thread</a>.<img src="https://github.com/notifications/beacon/ADLPZU7LPUZEGCU3DSE77WDQHDX75A5CNFSM4IOUPT4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5RIAMQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/pull/821?email_source=notifications\u0026email_token=ADLPZU5LEQJLL544RREYG63QHDX75A5CNFSM4IOUPT4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5RIAMQ#issuecomment-526549042",
"url": "https://github.com/rpm-software-management/rpm/pull/821?email_source=notifications\u0026email_token=ADLPZU5LEQJLL544RREYG63QHDX75A5CNFSM4IOUPT4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5RIAMQ#issuecomment-526549042",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>