* [gentoo-commits] gentoo-x86 commit in sci-biology/vaal/files: vaal-1.2-gcc-x86-no-autocast.patch
@ 2009-11-12 18:45 Andrey Kislyuk (weaver)
0 siblings, 0 replies; only message in thread
From: Andrey Kislyuk (weaver) @ 2009-11-12 18:45 UTC (permalink / raw
To: gentoo-commits
weaver 09/11/12 18:45:24
Added: vaal-1.2-gcc-x86-no-autocast.patch
Log:
Add patch for bug 279087
(Portage version: 2.2_rc30/cvs/Linux x86_64)
Revision Changes Path
1.1 sci-biology/vaal/files/vaal-1.2-gcc-x86-no-autocast.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-biology/vaal/files/vaal-1.2-gcc-x86-no-autocast.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-biology/vaal/files/vaal-1.2-gcc-x86-no-autocast.patch?rev=1.1&content-type=text/plain
Index: vaal-1.2-gcc-x86-no-autocast.patch
===================================================================
diff -durr VAAL.orig/SortKmersImpl.h VAAL/SortKmersImpl.h
--- VAAL.orig/SortKmersImpl.h 2009-11-12 13:02:40.116993289 +0000
+++ VAAL/SortKmersImpl.h 2009-11-12 13:04:59.416388534 +0000
@@ -98,7 +98,7 @@
{ if ( reads[l].size( ) < KSPAN ) continue;
unsigned int N = reads[l].size( ) - KSPAN + 1;
if ( S + 2*N >= R.size( ) ) {
- unsigned nn = Max( (long unsigned) ( 1.2 * R.size( ) ), (R.size( ) + 2*N) );
+ unsigned nn = Max( (long unsigned) ( 1.2 * R.size( ) ), (long unsigned) (R.size( ) + 2*N) );
if ( nn < R.size( ) ) FatalErr( "SortKmers<1>: Unsigned-int overflow (R=" << R.size( ) << ")" );
R.resize(nn);
}
@@ -180,7 +180,7 @@
}
if ( q == N ) break;
if ( S + 2*N >= R.size( ) ) {
- unsigned nn = Max( (long unsigned) ( 1.2 * R.size( ) ), (R.size( ) + 2*N) );
+ unsigned nn = Max( (long unsigned) ( 1.2 * R.size( ) ), (long unsigned) (R.size( ) + 2*N) );
if ( nn < R.size( ) ) FatalErr( "SortKmers<10>: Unsigned-int overflow (R=" << R.size( ) << ")" );
R.resize(nn);
}
@@ -207,7 +207,7 @@
top += Min( N - top, (unsigned int) 10000 );
if ( S + 20000 >= R.size( ) || S + 2*N >= R.size( ) ) {
- unsigned nn = Max( (long unsigned) ( 1.2 * R.size( ) ), (R.size( ) + 2*N) );
+ unsigned nn = Max( (long unsigned) ( 1.2 * R.size( ) ), (long unsigned) (R.size( ) + 2*N) );
if ( nn < R.size( ) ) FatalErr( "SortKmers<10>: Unsigned-int overflow (R=" << R.size( ) << ")" );
R.resize(nn);
}
@@ -318,7 +318,7 @@
top += Min( N - top, 10000 );
if ( S + 2*(top - q) >= R.size( ) ) {
- unsigned nn = Max( (unsigned) ( 1.2 * R.size( ) ), (S + 2*(top - q)) );
+ unsigned nn = Max( (unsigned) ( 1.2 * R.size( ) ), (unsigned) (S + 2*(top - q)) );
if ( nn < R.size( ) ) FatalErr( "SortKmers<100>: Unsigned-int overflow (R=" << R.size( ) << ")" );
R.resize(nn);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-11-12 18:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-12 18:45 [gentoo-commits] gentoo-x86 commit in sci-biology/vaal/files: vaal-1.2-gcc-x86-no-autocast.patch Andrey Kislyuk (weaver)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox