Skip to content

Commit

Permalink
Fix const cast warning
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed Apr 1, 2016
1 parent ccc8fc9 commit 4d5f00a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cgutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static Value *stringConstPtr(const std::string &txt)
ssno.str());
gv->setUnnamedAddr(true);
pooledval->second = gv;
jl_ExecutionEngine->addGlobalMapping(gv, (void*)pooledtxt.data());
jl_ExecutionEngine->addGlobalMapping(gv, (void*)(uintptr_t)pooledtxt.data());
}

GlobalVariable *v = prepare_global(pooledval->second);
Expand Down

0 comments on commit 4d5f00a

Please sign in to comment.