Skip to content

Commit

Permalink
Applied review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yitam committed Oct 12, 2018
1 parent bc72ec5 commit 33cacf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/shared/core_stmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1427,12 +1427,12 @@ void stmt_option_format_decimals:: operator()( _Inout_ sqlsrv_stmt* stmt, stmt_o
throw core::CoreException();
}

short format_decimals = static_cast<short>(Z_LVAL_P(value_z));
zend_long format_decimals = Z_LVAL_P(value_z);
CHECK_CUSTOM_ERROR(format_decimals < 0 || format_decimals > SQL_SERVER_MAX_PRECISION, stmt, SQLSRV_ERROR_FORMAT_DECIMALS_OUT_OF_RANGE, format_decimals) {
throw core::CoreException();
}

stmt->num_decimals = format_decimals;
stmt->num_decimals = static_cast<short>(format_decimals);
}

// internal function to release the active stream. Called by each main API function
Expand Down

0 comments on commit 33cacf5

Please sign in to comment.