Skip to content

Commit 563a740

Browse files
Fix build
1 parent 4464d62 commit 563a740

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

FindAFactor/_find_a_factor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ std::string find_a_factor(const std::string &toFactorStr, const bool &isConOfSqr
10821082
}
10831083
Factorizer worker(toFactor * toFactor, toFactor, fullMaxBase, nodeRange, nodeCount, nodeId, wheelEntryCount, batchSize, primes, forward(SMALLEST_WHEEL));
10841084

1085-
const auto workerFn = [&toFactor, &inc_seqs, &isConOfSqr, &worker] {
1085+
const auto workerFn = [&inc_seqs, &isConOfSqr, &worker] {
10861086
// inc_seq needs to be independent per thread.
10871087
std::vector<boost::dynamic_bitset<size_t>> inc_seqs_clone;
10881088
inc_seqs_clone.reserve(inc_seqs.size());

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import setuptools
33
from distutils.core import setup, Extension
44

5-
cpp_args = ['-std=c++17', '-lpthread']
5+
cpp_args = ['-lpthread']
66

77
README_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.md')
88
with open(README_PATH) as readme_file:
@@ -14,13 +14,14 @@
1414
["FindAFactor/_find_a_factor.cpp", "FindAFactor/dispatchqueue.cpp"],
1515
include_dirs=['FindAFactor/include', 'pybind11/include', '/usr/local/include'],
1616
language='c++',
17+
cxx_std=17,
1718
extra_compile_args = cpp_args,
1819
),
1920
]
2021

2122
setup(
2223
name='FindAFactor',
23-
version='1.11.1',
24+
version='1.11.2',
2425
author='Dan Strano',
2526
author_email='dan@unitary.fund',
2627
description='Find any nontrivial factor of a number',

0 commit comments

Comments
 (0)