Skip to content

Store int preferences as NetworkTableType.kInteger - #109

Merged
kcooney merged 1 commit into
mainfrom
kcooney/int-preferences
Feb 1, 2026
Merged

Store int preferences as NetworkTableType.kInteger#109
kcooney merged 1 commit into
mainfrom
kcooney/int-preferences

Conversation

@kcooney

@kcooney kcooney commented Jan 4, 2026

Copy link
Copy Markdown
Contributor

The Java Preferences class stores int preferences as kDouble (the C++ Preferences
API does not do this). This could lead to precision issues, and may confuse users
who try to modify values in the UI.

This change updates PersistedConfiguration to store int values using kInteger.

@kcooney
kcooney marked this pull request as ready for review January 4, 2026 04:10
@kcooney
kcooney force-pushed the kcooney/int-preferences branch 5 times, most recently from 4615320 to fd5ef86 Compare January 4, 2026 05:25
@kcooney
kcooney force-pushed the kcooney/int-preferences branch 5 times, most recently from 7ba5c66 to f6499ee Compare January 4, 2026 22:01

@cuttestkittensrule cuttestkittensrule 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

@kcooney
kcooney merged commit cce670b into main Feb 1, 2026
1 check passed
@kcooney
kcooney deleted the kcooney/int-preferences branch February 1, 2026 02:57
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