This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 256321 - printf() and (long)1
Summary: printf() and (long)1
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: PC Solaris
: P3 normal (vote)
Assignee: danilasergeyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-02 13:26 UTC by soldatov
Modified: 2015-12-10 18:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2015-11-02 13:26:53 UTC
In latest cnd-build builds this test scenario fails:

#include <stdio.h>

int main() {
    printf("%ld\n", (long)1); // Mismatching the argument type "int" and conversation specifier "ld"
    return 0;
}
Comment 1 danilasergeyev 2015-11-09 11:44:15 UTC
fixed, change set 725dbadb770a (enum)
Comment 2 Quality Engineering 2015-11-12 02:33:15 UTC
Integrated into 'main-silver', will be available in build *201511120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/95e4e6609e1d
User: Danila Sergeyev <danilasergeyev@netbeans.org>
Log: fix bug #256321 printf() and (long)1
(transplanted from 725dbadb770a2b287208d7fbf7d97785780815bc)
Comment 3 danilasergeyev 2015-11-20 08:58:59 UTC
additional fix in change set d467e857b772 (enum)
Comment 4 soldatov 2015-11-20 12:21:02 UTC
Verified in NetBeans 8.1patch1
Comment 5 Quality Engineering 2015-11-24 02:30:59 UTC
Integrated into 'main-silver', will be available in build *201511240002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/aceabc2c9ba0
User: Danila Sergeyev <danilasergeyev@netbeans.org>
Log: additional fix bug #256321 printf() and (long)1
(transplanted from d467e857b772f67a9b39d73195a389d79a1d6429)