Bug 199921 - [WHLSL] Cannot assign result of integral subtraction to uint
Summary: [WHLSL] Cannot assign result of integral subtraction to uint
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-18 16:04 PDT by Justin Fan
Modified: 2020-05-05 00:42 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Fan 2019-07-18 16:04:50 PDT
uint test() {
        uint answer = 1 - 0;
        return 1;
    }

fails to compile, because (1-0) returns an int.
Comment 1 Myles C. Maxfield 2020-05-05 00:42:48 PDT
WHLSL is no longer relevant.