X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;f=src%2Freadwrite.c;h=449e96b4c3d5d5051e08d9d45a13864870ca9513;hb=27cee0624f3dc430199c99f000179a3385e4d7c5;hp=19fca5d007d79aa33f85e5f0883cdb24b8e796c4;hpb=f350d81aac58d07ca1c614d63a03cf522a2d3ddb;p=plomrogue diff --git a/src/readwrite.c b/src/readwrite.c index 19fca5d..449e96b 100644 --- a/src/readwrite.c +++ b/src/readwrite.c @@ -7,18 +7,18 @@ extern uint16_t read_uint16_bigendian( FILE * file ) { uint16_t x; - x = (uint16_t) fgetc(file) << 8 ; - x = x + (uint16_t) fgetc(file) ; + x = (uint16_t) fgetc(file) << 8; + x = x + (uint16_t) fgetc(file); return x; } extern uint32_t read_uint32_bigendian( FILE * file ) { uint32_t x; - x = (uint32_t) fgetc(file) << 24 ; - x = x + ( (uint32_t) fgetc(file) << 16 ) ; - x = x + ( (uint32_t) fgetc(file) << 8 ) ; - x = x + (uint32_t) fgetc(file) ; + x = (uint32_t) fgetc(file) << 24; + x = x + ( (uint32_t) fgetc(file) << 16 ); + x = x + ( (uint32_t) fgetc(file) << 8 ); + x = x + (uint32_t) fgetc(file); return x; }