Bug 921: fix utilization of bitwise operation on enums in first_aligned
(grafted from 83b91d08851a5327326dab1249a4f9797b4d7af2)

--HG--
branch : 3.2
extra : source : 83b91d08851a5327326dab1249a4f9797b4d7af2