Fix rio_num() function by changing logic || to bitwise |.
Also added some logging.
Authored by: jfaris 2008-08-01
Parent: [r46]
Child: [r48]