Is this pain liver pain or gas or both?

I have been without symptoms for 13 years, but I have been told to expect them. Right now I have no jaundice, no itching, no fever, but for two days, I have had discomfort under my right rib cage. I have written it off to gas because it "gurgles" once in a while and seems to be passing some gas through (by the way, I have no colon, so it would have to be small intestine) and that affects the pain.

Is it possible that when the liver starts acting up, it can also impact how gas passes through that area? I am just confused on what I am feeling. Is it liver pain or gas pain or?