KhronosGroup / KhronosGroup/OpenCL-Headers

Resolve MSVC syntax error for half literals

Open
#133 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
766
Forks
273
Avg merge
2d 2h
Merged PRs (30d)
3

Description

The cl_half rounding tests trigger `C2059: syntax error: 'bad suffix on number' ` on MSVC due to misformatted literals. Found [here](https://github.com/KhronosGroup/OpenCL-Headers/pull/107/commits/adf1f89fc6aa16b6423a54149d56216e73a9aca8).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the cl_half rounding tests and reproduce the C2059 bad-suffix error on MSVC. Compare the literals with the formatting shown in the linked pull-request commit; done means the rounding tests no longer trigger the MSVC syntax error.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.