1
0
mirror of https://git.code.sf.net/p/zint/code synced 2025-12-18 10:27:09 +00:00

MSVC corrections thanks to Norbert Szabó

This commit is contained in:
hooper114
2009-08-06 18:48:42 +00:00
parent 22dec4892c
commit 776154d3fe
7 changed files with 29 additions and 26 deletions

View File

@@ -143,10 +143,10 @@ int module_is_set(struct zint_symbol *symbol, int y_coord, int x_coord)
void set_module(struct zint_symbol *symbol, int y_coord, int x_coord)
{
if(module_is_set(symbol, y_coord, x_coord)) { return; }
int x_char, x_sub;
int x_char, x_sub;
if(module_is_set(symbol, y_coord, x_coord)) { return; }
x_char = x_coord / 7;
x_sub = x_coord % 7;
@@ -163,9 +163,8 @@ void set_module(struct zint_symbol *symbol, int y_coord, int x_coord)
void unset_module(struct zint_symbol *symbol, int y_coord, int x_coord)
{
if(!(module_is_set(symbol, y_coord, x_coord))) { return; }
int x_char, x_sub;
int x_char, x_sub;
if(!(module_is_set(symbol, y_coord, x_coord))) { return; }
x_char = x_coord / 7;
x_sub = x_coord % 7;