I've run it through another compiler with all negatives and it returns the correct maximum value. Any help would be greatly appreciated.