diff options
-rw-r--r-- | lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index e86c1bc..ab05414 100644 --- a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp +++ b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp @@ -246,14 +246,14 @@ GenericValue lle_X_drand48(FunctionType *FT, const vector<GenericValue> &Args) { GenericValue lle_X_lrand48(FunctionType *FT, const vector<GenericValue> &Args) { assert(Args.size() == 0); GenericValue GV; - GV.Int32Val = lrand48(); + GV.IntVal = APInt(32, lrand48()); return GV; } // void srand48(long) GenericValue lle_X_srand48(FunctionType *FT, const vector<GenericValue> &Args) { assert(Args.size() == 1); - srand48(Args[0].Int32Val); + srand48(Args[0].IntVal.getZExtValue()); return GenericValue(); } |