summaryrefslogtreecommitdiff
path: root/Kernel/Net
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Net')
-rw-r--r--Kernel/Net/RTL8139NetworkAdapter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Net/RTL8139NetworkAdapter.cpp b/Kernel/Net/RTL8139NetworkAdapter.cpp
index 84a1a286b8..5ab7282430 100644
--- a/Kernel/Net/RTL8139NetworkAdapter.cpp
+++ b/Kernel/Net/RTL8139NetworkAdapter.cpp
@@ -296,7 +296,7 @@ void RTL8139NetworkAdapter::send_raw(const u8* data, int length)
#ifdef RTL8139_DEBUG
kprintf("RTL8139NetworkAdapter: chose buffer %d @ %p\n", hw_buffer, m_tx_buffer_addr[hw_buffer]);
#endif
- m_tx_next_buffer = hw_buffer + 1 % 4;
+ m_tx_next_buffer = (hw_buffer + 1) % 4;
}
memcpy((void*)(m_tx_buffer_addr[hw_buffer]), data, length);