Skip to content

Ensure all usages of areIdentical receive bigint stats#1068

Merged
RyanZim merged 1 commit into
masterfrom
ryan/bigint-are-identical
Apr 21, 2026
Merged

Ensure all usages of areIdentical receive bigint stats#1068
RyanZim merged 1 commit into
masterfrom
ryan/bigint-are-identical

Conversation

@RyanZim

@RyanZim RyanZim commented Apr 20, 2026

Copy link
Copy Markdown
Collaborator

On Windows, stats.ino can exceed MAX_SAFE_INTEGER.

We use { bigint: true } here:

const statFunc = opts.dereference
? (file) => fs.stat(file, { bigint: true })
: (file) => fs.lstat(file, { bigint: true })

But there are a few other uses of areIdentical() that didn't get bigint stats. This fixes that.

On Windows, stats.ino can exceed MAX_SAFE_INTEGER
@RyanZim RyanZim requested review from JPeer264 and manidlou April 20, 2026 20:54

@JPeer264 JPeer264 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@RyanZim RyanZim merged commit a4000d6 into master Apr 21, 2026
18 checks passed
@RyanZim RyanZim deleted the ryan/bigint-are-identical branch April 21, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants