Skip to content

Commit

Permalink
Fix -Wparentheses warning (OSGeo#2652)
Browse files Browse the repository at this point in the history
  • Loading branch information
nilason authored and marisn committed May 18, 2023
1 parent 8e0eabb commit 4f21f6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion general/g.rename/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ void update_reclass_maps(const char *name, const char *mapset)
fprintf(fp, "reclass\n");
fprintf(fp, "name: %s\n", name);
fprintf(fp, "mapset: %s\n", mapset);
if (fwrite(str, l, 1, fp) < 1 & l > 0)
if ((fwrite(str, l, 1, fp) < 1) & (l > 0))
G_fatal_error(_("Failed to write full reclass maps file"));
G_free(str);
fclose(fp);
Expand Down

0 comments on commit 4f21f6b

Please sign in to comment.