Oakland Athletics pitcher Brandon McCarthy underwent surgery Wednesday night after a CT scan showed an epidural hemorrhage, brain contusion and skull fracture as a result of a line drive that hit his head Wednesday afternoon, the A’s announced.

Los Angeles Angels shortstop Erick Aybar hit the line drive that bounced off the side of McCarthy’s head in the fourth inning, knocking him to the ground. McCarthy was taken to Alta Bates Summit Medical Center in Oakland and later to another facility.

Watch This

McCarthy had another CT scan Thursday afternoon that showed improvement in his condition and that the hemorrhage had subsided. McCarthy is still in the hospital and is “alert, awake and resting comfortably,” an A’s press release said.

“Our first concern is Brandon’s health, and we are heartened to learn he has shown progress in his recovery after surgery,” said A’s vice president and general manager Billy Beane in a statement released Thursday. “We are glad to report he is stable, awake and alert. The team will provide further updates as they become available in the coming days. We would ask members of the media to respect the privacy of Brandon and his family during this time. As we travel to Seattle today, Brandon remains in everyone’s thoughts as we wish him a speedy recovery.”

Earlier in the day, McCarthy’s wife, Amanda, tweeted this message: “Again, thank you for the thoughts and prayers, they are not going unnoticed. He has the best fans.”

The A's have not given a timetable for how long McCarthy will be out. McCarthy is 8-6 with a 3.24 ERA in 18 starts.