If the bone of your foot is sticking out in the wrong place, there is a very good chance you have broken it, not just flipped it. Even if you can't feel any pain, it's best to get situations like this checked out just to be on the safe side.
Accident and Emergency Room
The best thing you can do if you have a broken, sprained or even just twisted part of your foot is to seek medical aid immediately at the emergency room so that they can assess the problem and decide the best cause of action for your treatment.
What can happen if I leave the bone untreated?
If you leave a broken or twisted bone in your foot untreated it can lead to further complications. You may have trouble with movement such as running or walking, or even be unable to walk at all as you will be putting increased pressure on your surrounding bones to do all of the work.