Skip to content

Switch to 32-bit tick width to avoid windows compile warnings#1422

Open
kstribrnAmzn wants to merge 1 commit into
FreeRTOS:mainfrom
kstribrnAmzn:defaultTickWidth
Open

Switch to 32-bit tick width to avoid windows compile warnings#1422
kstribrnAmzn wants to merge 1 commit into
FreeRTOS:mainfrom
kstribrnAmzn:defaultTickWidth

Conversation

@kstribrnAmzn
Copy link
Copy Markdown
Member

Description

Windows defines a long as a 32-bit value regardless if a 32 or 64 bit OS is used. This makes a 64-bit tick an unsigned long long which was introduced after C90.

Test Steps

Verified in https://forums.freertos.org/t/cmake-build-error-for-cmake-example-in-freertosv202604-00-lts/

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

See https://forums.freertos.org/t/cmake-build-error-for-cmake-example-in-freertosv202604-00-lts/

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Windows defines a long as a 32-bit value regardless if a 32 or 64 bit
OS is used. This makes a 64-bit tick an `unsigned long long` which was
introduced after C90.
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 4, 2026

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.

3 participants