Where something like
RGBTRIPLE s =
{
clampf_0_255(mag(g_x[2], g_y[2])),
clampf_0_255(mag(g_x[1], g_y[1])),
clampf_0_255(mag(g_x[0], g_y[0]))
};
temp[y][x] = s;
is understood, switching to a compound literal
temp[y][x] = (RGBTRIPLE)
{
clampf_0_255(mag(g_x[2], g_y[2])),
clampf_0_255(mag(g_x[1], g_y[1])),
clampf_0_255(mag(g_x[0], g_y[0]))
};
shows up as:
