If any judgment is rendered, by mistake or clerical error, for a larger sum than is due, the party recovering the judgment may have the amount of the judgment decreased by remittitur to the amount which is due, provided reasonable notice has been given to the adverse party or his attorney. The court may thereupon order the record of the judgment to be corrected, and affirm the judgment for the amount to which it has been decreased.