improve fallback behaviour of underlying_type for old gcc
The fix fbd85c25 is not sufficient to build with an old GCC 4.6. The problem was, that underlying_type returned an int as default value for GCC 4.6 and int allows negative values that are forbidden in typed_flags_set. Changed it to alternative solution suggested in http://stackoverflow.com/questions/26148192/underlying-type-of-a-c-enum-in-c03 Change-Id: I20f44b8cef9c692efb583971bd251f1c34c289ab Reviewed-on: https://gerrit.libreoffice.org/15663Reviewed-by:Katarina Behrens <Katarina.Behrens@cib.de> Tested-by:
Katarina Behrens <Katarina.Behrens@cib.de>
Showing
Please
register
or
sign in
to comment