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

Submitter:  None
Submitted:  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
* Mandatory Fields

Add a New Comment Rich Markup
   

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

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-f8d8.
Corresponding source code