Update main.c

pull/18/head
alanbjohnston 7 years ago committed by GitHub
parent 9164aed395
commit b6f6fb8092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -422,7 +422,7 @@ int twosToInt(int val,int len) { // Convert twos compliment to integer
printf("############## val: %d", val); printf("############## val: %d", val);
if(val & (1 << len - 1)) if(val & (1 << (len - 1)))
val = val - (1 << len); val = val - (1 << len);
printf("len: %d return: %d \n", len, val); printf("len: %d return: %d \n", len, val);

Loading…
Cancel
Save

Powered by TurnKey Linux.