Deductions & credits

I figured this out, though - the instructions for Form 1116 state that "total capital and ordinary gain (before subtracting any losses)" is used to calculate gross income for Line 2e. The losses had been backed out, which explained the difference!