Objective
Implement a function that compares an int against an unsigned int by their real numeric values and returns -1, 0 or 1.
Steps
$ cmp_mixed(-1, 1u)
-1
$ cmp_mixed(5, 5u)
0
$ cmp_mixed(7, 3u)
1
$ cmp_mixed(-1, 4294967295u)
-1
$ cmp_mixed(INT_MIN, 2147483648u)
-1
Expected files
Allowed functions
None. Write every helper yourself.

Objective
Implement a function that compares an int against an unsigned int by their real numeric values and returns -1, 0 or 1.
Steps
$ cmp_mixed(-1, 1u)
-1
$ cmp_mixed(5, 5u)
0
$ cmp_mixed(7, 3u)
1
$ cmp_mixed(-1, 4294967295u)
-1
$ cmp_mixed(INT_MIN, 2147483648u)
-1
Expected files
Allowed functions
None. Write every helper yourself.

Tests
Run the tests to grade your code