I also agree that the best route would be to talk it out with your friend, that way if there's anything up, you both know and can work it out. There's nothing you should feel, and whatever you are feeling, there's nothing wrong with it.
If you feel this might be an issue at any other time, just be sure you know what boundaries you are both comfortable with. From what I hear, guys have some vastly differing things they're okay with their friends doing. Some guys have problems just hugging a friend, others have no problem sharing a bed with a friend. If your friend has no problem with you showing affection in this manner, then there's no problem.
In friendships, as in any other relationship, communication is key to keeping bonds strong!
Hope this helps.