X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=Polygon%2Findex.cxx;h=34352aacd187cf8e8fd3a389474895581f8b1175;hb=44550e6b70a80574c7a56a96e6ed4e2a4ab32e88;hp=a467c0ba6a9c9b6ed11c106b16231c7d5c4bc684;hpb=7f2ab3559b4218a4e43e28094e26c62fe8b78357;p=flightgear.git diff --git a/Polygon/index.cxx b/Polygon/index.cxx index a467c0ba6..34352aacd 100644 --- a/Polygon/index.cxx +++ b/Polygon/index.cxx @@ -30,7 +30,7 @@ #include "index.hxx" -static int poly_index; +static long int poly_index; static string poly_path; @@ -46,14 +46,14 @@ bool poly_index_init( string path ) { return false; } - fscanf( fp, "%d", &poly_index ); + fscanf( fp, "%ld", &poly_index ); fclose( fp ); } // increment the persistant counter and return the next poly_index -int poly_index_next() { +long int poly_index_next() { ++poly_index; FILE *fp = fopen( poly_path.c_str(), "w" ); @@ -62,7 +62,7 @@ int poly_index_next() { cout << "Error cannot open " << poly_path << " for writing" << endl; } - fprintf( fp, "%d\n", poly_index ); + fprintf( fp, "%ld\n", poly_index ); fclose( fp ); @@ -71,6 +71,9 @@ int poly_index_next() { // $Log$ +// Revision 1.2 1999/03/19 00:27:30 curt +// Use long int for index instead of just int. +// // Revision 1.1 1999/02/25 21:30:24 curt // Initial revision. //