Skip to content

Commit 22cef2d

Browse files
committed
Fixed 1.40 warnings
1 parent 94f0021 commit 22cef2d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

example/mapcode.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ static void usage(const char* appName) {
9999
printf(" and the (x, y, z) coordinates are placed on a sphere with radius 1.\n");
100100
printf(" The (x, y, z) coordinates are primarily meant for visualization of the data set.\n");
101101
printf("\n");
102-
printf("\n Notes on the use of stdout and stderr:\n");
103-
printf("\n stdout: used for outputting 3D point data; stderr: used for statistics.");
104-
printf("\n You can redirect stdout to a destination file, while stderr will show progress.\n");
102+
printf(" Notes on the use of stdout and stderr:\n");
103+
printf(" stdout: used for outputting 3D point data; stderr: used for statistics.");
104+
printf(" You can redirect stdout to a destination file, while stderr will show progress.\n");
105105
printf("\n");
106106
printf(" The result code is 0 when no error occurred, 1 if an input error occurred and 2\n");
107107
printf(" if an internal error occurred.\n");
@@ -585,7 +585,7 @@ int main(const int argc, const char** argv)
585585

586586
int gridX = 0;
587587
int gridY = 0;
588-
int line = my_round(sqrt(totalNrOfPoints));
588+
int line = my_round(sqrt((double)totalNrOfPoints));
589589
for (int i = 0; i < totalNrOfPoints; ++i) {
590590
double lat;
591591
double lon;

0 commit comments

Comments
 (0)