diff --git a/src/addition.c b/src/addition.c index 8b42dc7..4d34e9c 100644 --- a/src/addition.c +++ b/src/addition.c @@ -12,6 +12,6 @@ unsigned int addition(unsigned int a, unsigned int b) { int nc[1] = {0}; full_adder(s, nc, a, b, 0); - - return (unsigned int) s[0]; + + return (unsigned int) s[0] ^ (nc[0] << 1); } \ No newline at end of file