Skip to content

Commit

Permalink
Issue-363: changing int to long long for putDoubleFactor
Browse files Browse the repository at this point in the history
  • Loading branch information
gangatp committed May 27, 2024
1 parent c7f7aa8 commit 8fb7a5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Include/Model/Writer/v100/NMR_ModelWriterNode100_Mesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ namespace NMR {
nfUint32 m_nBallRefBufferPos;
private:
const int m_nPosAfterDecPoint;
const int m_nPutDoubleFactor;
const nfInt64 m_nPutDoubleFactor;
__NMR_INLINE void putFloat(_In_ const nfFloat fValue, _In_ std::array<nfChar, MODELWRITERMESH100_LINEBUFFERSIZE> & line, _In_ nfUint32 & nBufferPos);
__NMR_INLINE void putDouble(_In_ const nfDouble dValue, _In_ std::array<nfChar, MODELWRITERMESH100_LINEBUFFERSIZE> & line, _In_ nfUint32 & nBufferPos);

Expand Down
2 changes: 1 addition & 1 deletion Source/Model/Writer/v100/NMR_ModelWriterNode100_Mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ namespace NMR {

CModelWriterNode100_Mesh::CModelWriterNode100_Mesh(_In_ CModelMeshObject * pModelMeshObject, _In_ CXmlWriter * pXMLWriter, _In_ PProgressMonitor pProgressMonitor,
_In_ PMeshInformation_PropertyIndexMapping pPropertyIndexMapping, _In_ int nPosAfterDecPoint, _In_ nfBool bWriteMaterialExtension, _In_ nfBool bWriteBeamLatticeExtension)
:CModelWriterNode_ModelBase(pModelMeshObject->getModel(), pXMLWriter, pProgressMonitor), m_nPosAfterDecPoint(nPosAfterDecPoint), m_nPutDoubleFactor((int)(pow(10, CModelWriterNode100_Mesh::m_nPosAfterDecPoint)))
:CModelWriterNode_ModelBase(pModelMeshObject->getModel(), pXMLWriter, pProgressMonitor), m_nPosAfterDecPoint(nPosAfterDecPoint), m_nPutDoubleFactor((nfInt64)(pow(10, CModelWriterNode100_Mesh::m_nPosAfterDecPoint)))
{
__NMRASSERT(pModelMeshObject != nullptr);
if (!pPropertyIndexMapping.get())
Expand Down

0 comments on commit 8fb7a5e

Please sign in to comment.