mark const stuff const
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
#include "user/lib/Memory.h"
|
||||
|
||||
void bse::memset(char* destination, char value, unsigned int bytes) {
|
||||
void bse::memset(char* destination, const char value, const unsigned int bytes) {
|
||||
for (unsigned int byte = 0; byte < bytes; ++byte) {
|
||||
*(destination + byte) = value;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
namespace bse {
|
||||
|
||||
template<typename T>
|
||||
void memcpy(T* destination, T* source, unsigned int count = 1) {
|
||||
void memcpy(T* destination, const T* source, const unsigned int count = 1) {
|
||||
for (unsigned int i = 0; i < count; ++i) {
|
||||
*(destination + i) = *(source + i);
|
||||
}
|
||||
|
Reference in New Issue
Block a user