diff options
author | Andreas Kling <kling@serenityos.org> | 2020-03-01 12:35:09 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-01 12:58:22 +0100 |
commit | 22d0a6d92f9e5a93b248eef0609d40ecb332f869 (patch) | |
tree | 6ec543d38dbeda281c6719ae5cc33ef3eb47c496 /Kernel/Scheduler.cpp | |
parent | fee20bd8de0f9c4222f7123f5c6ea31f00221d7b (diff) | |
download | serenity-22d0a6d92f9e5a93b248eef0609d40ecb332f869.zip |
AK: Remove unnecessary casts to size_t, after Vector changes
Now that Vector uses size_t, we can remove a whole bunch of redundant
casts to size_t.
Diffstat (limited to 'Kernel/Scheduler.cpp')
-rw-r--r-- | Kernel/Scheduler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Scheduler.cpp b/Kernel/Scheduler.cpp index b9c2540202..a5aa46f089 100644 --- a/Kernel/Scheduler.cpp +++ b/Kernel/Scheduler.cpp @@ -599,7 +599,7 @@ void Scheduler::timer_tick(RegisterState& regs) sample.pid = Process::current->pid(); sample.tid = Thread::current->tid(); sample.timestamp = g_uptime; - for (size_t i = 0; i < min((size_t)backtrace.size(), Profiling::max_stack_frame_count); ++i) { + for (size_t i = 0; i < min(backtrace.size(), Profiling::max_stack_frame_count); ++i) { sample.frames[i] = backtrace[i]; } } |