Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 141724 Details for
Bug 207292
dev-db/mysql-5.0.44-r2 - factorial segfault
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
factorial.patch
factorial.patch (text/plain), 473 bytes, created by
Evgeniy Kliymovich
on 2008-01-24 15:10:45 UTC
(
hide
)
Description:
factorial.patch
Filename:
MIME Type:
Creator:
Evgeniy Kliymovich
Created:
2008-01-24 15:10:45 UTC
Size:
473 bytes
patch
obsolete
>--- 1.4/dbug/factorial.c 2001-09-14 01:54:30 +02:00 >+++ 1.5/dbug/factorial.c 2007-01-27 22:07:50 +01:00 >@@ -1,6 +1,13 @@ > #ifdef DBUG_OFF /* We are testing dbug */ >-#undef DBUG_OFF >-#endif >+ >+int factorial(register int value) { >+ if(value > 1) { >+ value *= factorial(value-1); >+ } >+ return value; >+} >+ >+#else > > #include <my_global.h> > >@@ -15,3 +22,6 @@ register int value) > DBUG_PRINT ("result", ("result is %d", value)); > DBUG_RETURN (value); > } >+ >+#endif >+
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 207292
: 141724