Use pointer instead of Int.
Changed bbStringToLong to return value rather than change by ref.