Documentation Updated: fixing compiler warnings by pre-calculating the array length
Hash: 833f93712a67d15feccb57221760d967ec209fcc