Skip to content

Commit 4bf12f9

Browse files
committed
core: add missing const
1 parent 24bb01c commit 4bf12f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/eigenpy/utils/is-aligned.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//
2-
// Copyright (c) 2020 INRIA
2+
// Copyright (c) 2020-2023 INRIA
33
//
44

55
#ifndef __eigenpy_utils_is_aligned_hpp__
66
#define __eigenpy_utils_is_aligned_hpp__
77

88
namespace eigenpy {
9-
inline bool is_aligned(void* ptr, std::size_t alignment) {
9+
inline bool is_aligned(const void* ptr, std::size_t alignment) {
1010
return (reinterpret_cast<std::size_t>(ptr) & (alignment - 1)) == 0;
1111
}
1212
} // namespace eigenpy

0 commit comments

Comments
 (0)