fixed integer overflow by using unsigned integer
Created by: zmanchun
It is possible that refctr gets incremented infinitely. Therefore, we need to change its type to unsigned int.
Created by: zmanchun
It is possible that refctr gets incremented infinitely. Therefore, we need to change its type to unsigned int.