Skip to content

Commit

Permalink
Fix bug introduced by const pointer
Browse files Browse the repository at this point in the history
Former-commit-id: 5f07499
  • Loading branch information
daquexian committed May 31, 2018
1 parent cc3aff3 commit ba384a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dnnlibrary/src/main/cpp/ModelBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,10 @@ ModelBuilder &ModelBuilder::readFromBuffer(const char* buffer) {
while ((paramType = *intPt++) != MF_TOP_NAME) {
switch (paramType) {
case MF_LRN_ALPHA :
alpha = *reinterpret_cast<float *>(intPt++);
alpha = *reinterpret_cast<const float *>(intPt++);
break;
case MF_LRN_BETA :
beta = *reinterpret_cast<float *>(intPt++);
beta = *reinterpret_cast<const float *>(intPt++);
break;
case MF_LOCAL_SIZE :
local_size = *intPt++;
Expand Down

0 comments on commit ba384a2

Please sign in to comment.