find_9(<<_:16, Buffer/binary>>) -> <<Buffer>>.<br><br>This silly line of code cause an "Internal consistency check failed" error message in R12B:<br><br><i>find9: function find_9/1+9:<br>
Internal consistency check failed - please report this bug.<br> Instruction: {bs_put_integer,{f,0},<br> {integer,8},<br> 1,<br> {field_flags,[unsigned,big]},
<br> {x,0}}<br> Error: {match_context,{x,0}}:</i><br><br>This message is a huge improvement, as the same code compiles in R11B6, but causing a runtime crash:<br><br><i>** exited: {badarg,[{find9,find_9,1},{shell,exprs,6},{shell,eval_loop,3}]} **
<br><br></i>Am I correct when suspecting that R12B tries to truncate the binary to a single byte?<br><br>Attila<br><br>