Update math/magic_number.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Neha Hasija 2020-10-27 06:33:14 +05:30 committed by GitHub
parent a6526c8108
commit 69cacbc88b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}