pkgsrc/audio/darkice/patches/patch-ab
2008-08-02 17:43:56 +00:00

17 lines
735 B
Text

$NetBSD: patch-ab,v 1.3 2008/08/02 17:43:56 dholland Exp $
--- src/LameLibEncoder.cpp~ 2006-05-19 08:35:25.000000000 -0400
+++ src/LameLibEncoder.cpp 2008-08-02 13:37:41.000000000 -0400
@@ -79,10 +79,10 @@
lameGlobalFlags = lame_init();
// ugly lame returns -1 in a pointer on allocation errors
- if ( !lameGlobalFlags || ((int)lameGlobalFlags) == -1 ) {
+ if ( !lameGlobalFlags || lameGlobalFlags == (lame_global_flags *)-1 ) {
throw Exception( __FILE__, __LINE__,
"lame lib init error",
- (int) lameGlobalFlags);
+ (int)(intptr_t)lameGlobalFlags);
}
if ( 0 > lame_set_num_channels( lameGlobalFlags, getInChannel()) ) {