1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-12 17:30:50 +00:00

Fixed a C99ism.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4799 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2010-08-09 05:47:22 +00:00
parent 99fd891126
commit b936617eb4

View File

@ -487,16 +487,18 @@ void SegWrite (const char* TgtName, FILE* Tgt, Segment* S, SegWriteFunc F, void*
/* Write the data from the given segment to a file. For expressions, F is /* Write the data from the given segment to a file. For expressions, F is
* called (see description of SegWriteFunc above). * called (see description of SegWriteFunc above).
*/ */
{ {
int Sign; Section* Sec;
int Sign;
unsigned long Offs = 0; unsigned long Offs = 0;
/* Remember the output file and offset for the segment */ /* Remember the output file and offset for the segment */
S->OutputName = TgtName; S->OutputName = TgtName;
S->OutputOffs = (unsigned long) ftell (Tgt); S->OutputOffs = (unsigned long) ftell (Tgt);
/* Loop over all sections in this segment */ /* Loop over all sections in this segment */
Section* Sec = S->SecRoot; Sec = S->SecRoot;
while (Sec) { while (Sec) {
Fragment* Frag; Fragment* Frag;