From 16bb8afbb16e4f4d85cef8411d88439c7e866d8c Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 29 Jan 2009 16:13:17 +0000 Subject: 2009-01-29 Gene Smith PR 1363/filesystem * libfs/src/dosfs/fat.h: Fix issue where 32 bit values are not written correctly in FAT f/s data. --- cpukit/libfs/src/dosfs/fat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/libfs') diff --git a/cpukit/libfs/src/dosfs/fat.h b/cpukit/libfs/src/dosfs/fat.h index 4272437ab9..83505922cc 100644 --- a/cpukit/libfs/src/dosfs/fat.h +++ b/cpukit/libfs/src/dosfs/fat.h @@ -125,7 +125,7 @@ extern "C" { #define FAT_SET_VAL32(x, ofs,val) do { \ uint32_t val1 = val; \ - FAT_SET_VAL16((x),(ofs),(val1)&&0xffff);\ + FAT_SET_VAL16((x),(ofs),(val1)&0xffff);\ FAT_SET_VAL16((x),(ofs)+2,(val1)>>16);\ } while (0) -- cgit v1.2.3