From 6a3e3fae77f1fdb5957896bd3cfa4dfb111e2478 Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Fri, 17 Nov 2017 02:46:14 +0100 Subject: [PATCH] Issue #643 - Only break lookup if 'code' AND 'version' found. --- src/entities.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/entities.c b/src/entities.c index abba708..c1b4453 100644 --- a/src/entities.c +++ b/src/entities.c @@ -2175,9 +2175,11 @@ ctmbstr TY_(EntityName)( uint ch, uint versions ) { if ( ep->code == ch ) { - if ( ep->versions & versions ) + if (ep->versions & versions) + { entnam = ep->name; - break; /* Found code. Stop search. */ + break; /* Issue #643 - Found code and version. Stop search? */ + } } } return entnam;