Skip to content

Commit

Permalink
wasm: fix size_t as key of half edge, size_t is not 64 bits in webass…
Browse files Browse the repository at this point in the history
…embly
  • Loading branch information
huxingyi committed Aug 26, 2023
1 parent 2d5e572 commit 8d36ed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dust3d/mesh/solid_mesh_boolean_operation.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class SolidMeshBooleanOperation {

static inline uint64_t makeHalfEdgeKey(size_t first, size_t second)
{
return (first << 32) | second;
return ((uint64_t)first << 32) | second;
}

void addTriagleToAxisAlignedBoundingBox(const SolidMesh& mesh, const std::vector<size_t>& triangle, AxisAlignedBoudingBox* box)
Expand Down

0 comments on commit 8d36ed8

Please sign in to comment.