Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix string to double conversion #4

Closed
ralphlange opened this issue Sep 1, 2021 · 0 comments
Closed

Fix string to double conversion #4

ralphlange opened this issue Sep 1, 2021 · 0 comments
Assignees
Labels

Comments

@ralphlange
Copy link
Member

See the CA Gateway issue epics-extensions/ca-gateway#37 raised by @andrej-m and the proposed fix by @anjohnson in this tech-talk message.

It is proposed to change the conversion back to using sscanf() with a "%lf" format instead of using epicsScanDouble().

@ralphlange ralphlange added the bug label Sep 1, 2021
@ralphlange ralphlange self-assigned this Sep 1, 2021
ralphlange added a commit to ralphlange/epics-base that referenced this issue Dec 7, 2021
This is an alternative fix for the issue described in
epics-modules/pcas#4 and
epics-extensions/ca-gateway#37
that keeps the call to epicsScanDouble() before trying
sscanf() first with "%lf" (ignoring extra characters)
then with "%x" (to catch hex numbers).
@ralphlange ralphlange mentioned this issue Dec 8, 2021
epics-jenkins pushed a commit to epics-base/epics-base that referenced this issue Dec 8, 2021
This is an alternative fix for the issue described in
epics-modules/pcas#4 and
epics-extensions/ca-gateway#37
that keeps the call to epicsScanDouble() before trying
sscanf() first with "%lf" (ignoring extra characters)
then with "%x" (to catch hex numbers).
(closes #216)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant