When i put this little equation through MinGW

total = 100-25*50;

The order of precedence states that it should do 25*50(1250) first and then -100

the result of that being 1150...

However... when i put this through MinGW it returns -1150 which implies it's doing the subtraction first and then multiplying it by 50 (on my calculator i managed to get the same result by doing that)

So, what's going on here? :S