comparison src/exif-common.c @ 1164:3692efcbd325

Fix compilation warnings.
author zas_
date Thu, 20 Nov 2008 11:46:43 +0000
parents 5a5784eb61df
children 9e424170e958
comparison
equal deleted inserted replaced
1163:a72acb0fb9a6 1164:3692efcbd325
454 } 454 }
455 p1 = (gint)p; 455 p1 = (gint)p;
456 p2 = (gint)((p - p1)*60); 456 p2 = (gint)((p - p1)*60);
457 p3 = ((p - p1)*60 - p2)*60; 457 p3 = ((p - p1)*60 - p2)*60;
458 458
459 g_string_append_printf(string, "%0d° %0d' %0.2f\" %.1s", p1, p2, p3, ref); 459 g_string_append_printf(string, "%0lu° %0lu' %0.2f\" %.1s", p1, p2, p3, ref);
460 } // if (item && ref) 460 } // if (item && ref)
461 461
462 item = exif_get_item(exif, "Exif.GPSInfo.GPSLongitude"); 462 item = exif_get_item(exif, "Exif.GPSInfo.GPSLongitude");
463 ref = exif_get_data_as_text(exif, "Exif.GPSInfo.GPSLongitudeRef"); 463 ref = exif_get_data_as_text(exif, "Exif.GPSInfo.GPSLongitudeRef");
464 if (item && ref) 464 if (item && ref)
472 } 472 }
473 p1 = (gint)p; 473 p1 = (gint)p;
474 p2 = (gint)((p - p1)*60); 474 p2 = (gint)((p - p1)*60);
475 p3 = ((p - p1)*60 - p2)*60; 475 p3 = ((p - p1)*60 - p2)*60;
476 476
477 g_string_append_printf(string, ", %0d° %0d' %0.2f\" %.1s", p1, p2, p3, ref); 477 g_string_append_printf(string, ", %0lu° %0lu' %0.2f\" %.1s", p1, p2, p3, ref);
478 } // if (item && ref) 478 } // if (item && ref)
479 479
480 text = string->str; 480 text = string->str;
481 g_string_free(string, FALSE); 481 g_string_free(string, FALSE);
482 482