Skip to content

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

Merged
kstribrnAmzn merged 1 commit into
FreeRTOS:mainfrom
kstribrnAmzn:defaultTickWidth
Jun 12, 2026
Merged

Switch to 32-bit tick width to avoid windows compile warnings#1422
kstribrnAmzn merged 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.
@kstribrnAmzn kstribrnAmzn enabled auto-merge (squash) June 12, 2026 18:57
@sonarqubecloud

Copy link
Copy Markdown

@kstribrnAmzn kstribrnAmzn merged commit 6f23624 into FreeRTOS:main Jun 12, 2026
17 checks passed
@kstribrnAmzn kstribrnAmzn deleted the defaultTickWidth branch June 12, 2026 19:10
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