Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 428644 - sci-visualization/spectromatic-1.0-r2: wrong data types in struct 'waveheaderstruct' for amd64
Summary: sci-visualization/spectromatic-1.0-r2: wrong data types in struct 'waveheader...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-07-30 12:42 UTC by Ilya Gordeev
Modified: 2012-08-07 02:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
waveheaderstruct-amd64.patch (1.patch,2.70 KB, patch)
2012-07-30 12:43 UTC, Ilya Gordeev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Gordeev 2012-07-30 12:42:52 UTC
Compiling sci-visualization/spectromatic-1.0-r2 on 64-bit machine I get wrong code of reading RIFF/WAVE file header to struct 'waveheaderstruct'.
See proposed patch.

Reproducible: Always
Comment 1 Ilya Gordeev 2012-07-30 12:43:34 UTC
Created attachment 319716 [details, diff]
waveheaderstruct-amd64.patch
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2012-07-31 07:10:55 UTC
it compiles but I get following warning:

wave.c: In function ‘print_header’:
wave.c:70:2: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint32_t’ [-Wformat]
wave.c:71:2: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint32_t’ [-Wformat]
wave.c:74:2: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint32_t’ [-Wformat]
wave.c:75:2: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint32_t’ [-Wformat]
wave.c:77:2: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint32_t’ [-Wformat]
Comment 3 Sébastien Fabbro (RETIRED) gentoo-dev 2012-08-07 02:34:26 UTC
fixed in cvs, with added fixes for the harmless warnings. thanks for the patch.