The South American defeated Russian Teimuraz Gabashvili 6-4, 6-4 and will now challenge the world number one and top seed who is aiming to stretch a 10-match win streak at the Bercy Arena and starting after a bye give to all 16 seeds.
Roger Federer took another step towards a sixth US Open title with an efficient 6-3, 6-4, 6-4 win over Philipp Kohlschreiber while third seed Andy Murray followed him into the fourth round with a clinical 6-3 6-2 7-5 victory against Brazilian Thomaz Bellucci.
Rafael Nadal, the 10th seed, faces Germany's Dustin Brown for a place in the last 32.
Stanislas Wawrinka was talking directly to a fan who was bothering him, turning toward the Arthur Ashe Stadium stands and saying: "Shut up, man! Seriously, shut up."
World No.2 Roger Federer lost to Brazil's Thomaz Bellucci for the first time in his career, falling 5-7, 6-3, 4-6 in an entertaining exhibition match.
Top seed Janko Tipsarevic remains in contention to win a second title in as many weeks after setting up a clash with Brazil's Thomaz Bellucci in the final of the ATP event in Gstaad.
Former champion Rafael Nadal survived an early scare to kick off his bid for a third Wimbledon title with a 7-6 (7/0), 6-2, 6-3 victory over Brazil's Thomaz Bellucci in the first round on Tuesday.
Thomaz Bellucci came back from two sets down to beat Alejandro Falla 2-6, 3-6, 6-1, 6-4, 6-3 on Friday, squaring the Davis Cup series against Colombia at 1-1.
Santiago Giraldo of Colombia eliminated 13th-seeded Thomaz Bellucci of Brazil 7-5, 6-3 in the opening round of the Barcelona Open on Monday.
Second-seeded Fernando Verdasco of Spain was knocked out in the first round of the Mexican Open, losing 6-2, 4-6, 6-3 to Brazil's Thomaz Bellucci on Tuesday.