mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Update math/magic_number.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
parent
a6526c8108
commit
69cacbc88b
@ -29,7 +29,7 @@ namespace math {
|
||||
* @param n number to be checked.
|
||||
* @return if number is a magic number, returns true, else false.
|
||||
*/
|
||||
bool magic_number(int n) {
|
||||
bool magic_number(const uint64_t &n) {
|
||||
if (n <= 0) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user