mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-07-29 15:53:45 -05:00
Optimize gnc_numeric_check() by G_LIKELY-fying that the denominator is non-zero.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17534 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -58,7 +58,7 @@ static const char * _numeric_error_strings[] =
|
||||
inline GNCNumericErrorCode
|
||||
gnc_numeric_check(gnc_numeric in)
|
||||
{
|
||||
if(in.denom != 0)
|
||||
if(G_LIKELY(in.denom != 0))
|
||||
{
|
||||
return GNC_ERROR_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user