From f439de065dfbf93d5ccb1bbf511c3793e76527cc Mon Sep 17 00:00:00 2001 From: compudj Date: Wed, 5 Dec 2007 14:12:34 +0000 Subject: [PATCH] fix endianness git-svn-id: http://ltt.polymtl.ca/svn@2781 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/ltt/tracefile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ltt/branches/poly/ltt/tracefile.c b/ltt/branches/poly/ltt/tracefile.c index 2bb01629..cfe76e10 100644 --- a/ltt/branches/poly/ltt/tracefile.c +++ b/ltt/branches/poly/ltt/tracefile.c @@ -1877,7 +1877,7 @@ int ltt_tracefile_read_update_event(LttTracefile *tf) event->event_time = ltt_interpolate_time(tf, event); if(!tf->compact) { - event->event_id = *(guint16*)pos; + event->event_id = ltt_get_uint16(LTT_GET_BO(tf), pos); pos += sizeof(guint16); event->event_size = ltt_get_uint16(LTT_GET_BO(tf), pos); -- 2.34.1