Bug 22262 – importC: Error: incompatible types for '(buf) is (0)': 'ubyte*' and 'int'

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-09-01T11:42:19Z
Last change time
2021-09-07T22:52:06Z
Keywords
ImportC, pull
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2021-09-01T11:42:19Z
Reduced test: --- void test(unsigned char *buf) { if (buf == 0) return; }
Comment #1 by dlang-bot — 2021-09-04T03:58:18Z
@ibuclaw created dlang/dmd pull request #13043 "fix Issue 22262 - importC: Error: incompatible types for '(buf) is (0)': 'ubyte*' and 'int'" fixing this issue: - fix Issue 22262 - importC: Error: incompatible types for '(buf) is (0)': 'ubyte*' and 'int' https://github.com/dlang/dmd/pull/13043
Comment #2 by dlang-bot — 2021-09-04T05:13:14Z
dlang/dmd pull request #13043 "fix Issue 22262 - importC: Error: incompatible types for '(buf) is (0)': 'ubyte*' and 'int'" was merged into stable: - fee40ff137d8b5f4e0d859670c3cccb6836f88d2 by Iain Buclaw: fix Issue 22262 - importC: Error: incompatible types for '(buf) is (0)': 'ubyte*' and 'int' https://github.com/dlang/dmd/pull/13043
Comment #3 by dlang-bot — 2021-09-07T22:52:06Z
dlang/dmd pull request #13053 "merge stable" was merged into master: - 8cd28bae520db9ba712c2d62206aac80055d7c99 by Iain Buclaw: fix Issue 22262 - importC: Error: incompatible types for '(buf) is (0)': 'ubyte*' and 'int' https://github.com/dlang/dmd/pull/13053