I think nn could easily be a signed int.

Cheers