Skip to content

Please revert #10002 FS library returning (size_t)-1 #10360

Closed
@TD-er

Description

@TD-er

Board

Any

Device Description

Hardware Configuration

Version

latest master (checkout manually)

IDE Name

PlatformIO

Operating System

Windows 11

Flash frequency

Any

PSRAM enabled

yes

Upload speed

115200

Description

The change introduced by this commit has all kinds of side-effects as position() is used in several other functions, some of which expect this to be a signed int.

If you really need to return an error code for this function, then all (!!!) position related code should expect a signed type.
Returning (size_t)-1 is always something that should be frowned upon.

For now, please revert this commit.

Sketch

-

Debug Message

-

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions