Skip to content

Commit 355195f

Browse files
Merge pull request #9 from jmh530/featureA
fix nlopt_srand for 32bit machines
2 parents b2223a2 + a4fb6cc commit 355195f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

source/nlopt.d

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Authors: Chibisi Chima-Okereke
55

66
module nlopt;
77

8+
import core.stdc.config : c_ulong;
9+
810
extern (C):
911

1012
alias nlopt_func = double function(uint n, const(double)* x, double* gradient, void* func_data);
@@ -161,7 +163,7 @@ enum NLOPT_MAXTIME_REACHED = nlopt_result.NLOPT_MAXTIME_REACHED;
161163

162164
extern(System)
163165
{
164-
void nlopt_srand(ulong seed);
166+
void nlopt_srand(c_ulong seed);
165167
void nlopt_srand_time();
166168
void nlopt_version(int* major, int* minor, int* bugfix);
167169
}

0 commit comments

Comments
 (0)