diff --git a/coders/tiff.c b/coders/tiff.c
index 5425e77..3969fc4 100644
--- a/coders/tiff.c
+++ b/coders/tiff.c
@@ -674,7 +674,7 @@
           longy;
 
         if (TIFFGetField(tiff,exif_info[i].tag,&longy,&sans) != 0)
-          (void) FormatLocaleString(value,MaxTextExtent,"%ld",longy);
+          (void) FormatLocaleString(value,MaxTextExtent,"%lld",longy);
         break;
       }
 #endif