diff --git a/libc/src/__support/File/file.h b/libc/src/__support/File/file.h index 2299584c3d64e..3c035cdd5fc63 100644 --- a/libc/src/__support/File/file.h +++ b/libc/src/__support/File/file.h @@ -203,7 +203,7 @@ class File { // Close |f| and cleanup resources held by it. // Returns the non-zero error value if an error occurs when closing the // file. - static constexpr int cleanup(File *f) { + static int cleanup(File *f) { int close_result = f->close(); if (close_result != 0) return close_result;