Part Number: MSP430G2553

When trying to reset some bits in P1DIR register, i get this warning "Integer conversion resulted in truncation".
The line that gives problems is this one: P1DIR = ~(BIT1 | BIT7);
I have done it this way with other bits in this register, but i don't know why when i do it with bit7 it shows this warning. Isn't P1DIR an 8 bit register? anyone knows why is this warning popipg up?¿
It probably is a very dumb qüestion but i really cann't find what i am doing wrong here. Thank you very much in advance!
Joan Marc