bugProgramming from the Ground Up Book - Bugs: bug #37651, pdf-pag 69 (63 in the book) wrong...

 
 

bug #37651: pdf-pag 69 (63 in the book) wrong parameter order in the stack

Submitted by:  None
Submitted on:  Mon 29 Oct 2012 09:31:28 PM UTC  
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 29 Oct 2012 09:31:28 PM UTC, original submission:  

The text contains:

"
At this point, our stack looks like this:
Base Number <--- 12(%ebp)
Power <--- 8(%ebp)
"

FIX:

according to the previous source code (and the following section about the recursive functions), the correct ordering should be with the first parameter in 8(%ebp), like this:

"
At this point, our stack looks like this:
Power <--- 12(%ebp)
Base Number <--- 8(%ebp)
"

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

 

 

No changes have been made to this item

Back to the top


Powered by Savane 3.5