Skip to content

Commit

Permalink
fix typo error: "&&" -> "&"
Browse files Browse the repository at this point in the history
  • Loading branch information
gitgjogh committed Jan 12, 2017
1 parent fec791b commit 268d3bc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions libsim/sim_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,15 +594,15 @@ int str_2_int(const char *_str, int *ret_)
}

void mem_put_lte16(uint8_t *mem, uint32_t val) {
mem[0] = ((val ) && 0xff);
mem[1] = ((val>> 8) && 0xff);
mem[0] = ((val ) & 0xff);
mem[1] = ((val>> 8) & 0xff);
}

void mem_put_lte32(uint8_t *mem, uint32_t val) {
mem[0] = ((val ) && 0xff);
mem[1] = ((val>> 8) && 0xff);
mem[2] = ((val>>16) && 0xff);
mem[3] = ((val>>24) && 0xff);
mem[0] = ((val ) & 0xff);
mem[1] = ((val>> 8) & 0xff);
mem[2] = ((val>>16) & 0xff);
mem[3] = ((val>>24) & 0xff);
}


Expand Down Expand Up @@ -716,4 +716,4 @@ int scan_for_token(const char *_str, int b_first_alpha, int *pos1_, int *pos2_,
return b_err;
}
*/
*/

0 comments on commit 268d3bc

Please sign in to comment.