Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
0-wiz-0 committed Jan 20, 2024
1 parent 8f6c52f commit 8019bcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/DB.cc
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ DBStatement *DB::get_statement_internal(StatementID statement_id) {
}

if (statement_id.is_parameterized()) {
// printf("#DEBUG exanding %x '%s' to ", statement_id.flags, sql_query.c_str());
// printf("#DEBUG expanding %x '%s' to ", statement_id.flags, sql_query.c_str());
auto start = sql_query.find("@SIZE@");
if (start != std::string::npos) {
sql_query.replace(start, 6, statement_id.has_size() ? "and size = :size" : "");
Expand Down
4 changes: 2 additions & 2 deletions src/sha1.cc
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ sha_transform(struct sha_ctx *ctx, uint32_t *data) {
D = ctx->digest[3];
E = ctx->digest[4];

/* Heavy mangling, in 4 sub-rounds of 20 interations each. */
/* Heavy mangling, in 4 sub-rounds of 20 iterations each. */
subRound(A, B, C, D, E, f1, K1, data[0]);
subRound(E, A, B, C, D, f1, K1, data[1]);
subRound(D, E, A, B, C, f1, K1, data[2]);
Expand Down Expand Up @@ -329,7 +329,7 @@ SHA1Final(unsigned char digest[20], SHA1_CTX *ctx) {
else
for (i = words; i < SHA_DATALEN - 2; i++)
data[i] = 0;
/* Theres 512 = 2^9 bits in one block */
/* There's 512 = 2^9 bits in one block */
data[SHA_DATALEN - 2] = (ctx->count_h << 9) | (ctx->count_l >> 23);
data[SHA_DATALEN - 1] = (ctx->count_l << 9) | (ctx->index << 3);
sha_transform(ctx, data);
Expand Down

0 comments on commit 8019bcc

Please sign in to comment.