Noissue - Simplified implementation of contentTypes.enumerateTypes
The previous implementation of enumerateTypes
is a bit difficult to follow. This MR suggests a simpler alternative.
There is a behaviour change around bit the 31 flag. This is never hit currently, since we don't currently have a contentType
for 1 << 31
, but it will return a signed 32 bit int instead of unsigned (ie the number will be negative).
Edited by Justin Wernick