unsigned variable problem
Posted on 2004-04-18
I have an alghoritm written in C. Few functions use unsigned variables, just like unsigned int, unsigned char etc. I just wonder if it's possible for me to translate that code to PHP as all numeric variable types in PHP are signed.
Is there any easy way to solve that or do i have to convert value to unsigned after every operation?
How can i make PHP to use variable as an 'unsigned char' and not 'char'?
Just one example:
unsigned char calculo4_a (char caracter)
unsigned char aux1, aux2, aux3, temp;
for (i=0; i<8; i++)