Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The following code will generate warnings: auto now = time(nullptr); auto last_active_time = GetEventService(self->ctx_)->getActiveTime(); if (last_active_time + 60 * 1000 / 1000 <= now) { src/ams/../controller/controller_timer.h: In lambda function: src/ams/../controller/controller_timer.h:117:57: warning: comparison of integer expressions of different signedness: 'long long int' and 'long long unsigned int' [-Wsign-compare] 117 | if (last_active_time + 60 * 1000 / 1000 <= now) { reference: https://www.gnu.org/software/libc/manual/html_node/Time-Types.html On POSIX-conformant systems, time_t is an integer type. Signed-off-by: ligd <[email protected]>
- Loading branch information