I feel like a horror-head when this kind of thing happens in a friendship. You think you're on the same level, particularly with all the unsaid stuff about giftedness - and then some throw away comment and you're back to re-evaluating everything!!! I would certainly clear the air by talking with your friend, although you might not like the answers you hear...

Good luck... jojo