SPR25500-fix

Updated to handle unsigned long datatype overflow scenario.