Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 225207 Details for
Bug 311289
sci-mathematics/singular-3.1.1 version bump request
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
adapted patch no. 4
singular-3.1-glibc-2.10.patch (text/plain), 1.37 KB, created by
Johannes Rauh
on 2010-03-25 10:57:27 UTC
(
hide
)
Description:
adapted patch no. 4
Filename:
MIME Type:
Creator:
Johannes Rauh
Created:
2010-03-25 10:57:27 UTC
Size:
1.37 KB
patch
obsolete
>diff -Naur Singular-3-1-1/kernel/febase.cc Singular-3-1-1.new/kernel/febase.cc >--- Singular-3-1-1/kernel/febase.cc 2009-06-22 13:16:57.000000000 -0400 >+++ Singular-3-1-1.new/kernel/febase.cc 2009-08-20 22:31:06.000000000 -0400 >@@ -739,13 +739,15 @@ > char* dir_sep; > struct passwd *pw_entry; > strcpy (longpath, path); >- dir_sep = strchr(longpath, DIR_SEP); >+ // TODO: fix the ugly casting away of const >+ dir_sep = const_cast<char*> ( strchr(longpath, DIR_SEP) ); > *dir_sep = '\0'; > pw_entry = getpwnam(&longpath[1]); > if (pw_entry != NULL) > { > strcpy(longpath, pw_entry->pw_dir); >- dir_sep = strchr((char *)path, DIR_SEP); >+ // TODO: fix the ugly casting away of const >+ dir_sep = const_cast<char*> ( strchr((char*)path, DIR_SEP) ); > strcat(longpath, dir_sep); > path = longpath; > } >diff -Naur Singular-3-1-1/kernel/mpr_complex.cc Singular-3-1-1.new/kernel/mpr_complex.cc >--- Singular-3-1-1/kernel/mpr_complex.cc 2009-06-22 13:16:57.000000000 -0400 >+++ Singular-3-1-1.new/kernel/mpr_complex.cc 2009-08-20 22:28:58.000000000 -0400 >@@ -83,7 +83,8 @@ > BOOLEAN neg=false; > if (*in == '-') { in++; neg=TRUE; } > char *s; >- if ((s=strchr((char *)in,'E')) !=NULL) >+ /* TODO: fix the ugly casting away of const */ >+ if ((s = const_cast<char*> ( strchr(in,'E') )) !=NULL) > { > *s='e'; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 311289
:
225199
|
225201
|
225203
|
225205
| 225207