Most probably the answer is: You did not want to apply pressure on your broken leg so you stepped in a way that all the pressure was applied on your ankle (and that is the reason it is swollen). Please see a doctor.