correctly handle platform error in rdj assembly

sorry to be nitpicking here :) but shouldn't it read ```had_err = 1``` (or -1) it is not a bool value.