fb 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/fb.c +2 -3
  2. metadata +2 -2
data/fb.c CHANGED
@@ -175,7 +175,6 @@ typedef struct trans_opts
175
175
  /* global utilities */
176
176
 
177
177
  #define FB_ALIGN(n, b) ((n + b - 1) & ~(b - 1))
178
- /* #define FB_ALIGN(n,b) ((n+1) & ~1) */
179
178
  #define UPPER(c) (((c) >= 'a' && (c)<= 'z') ? (c) - 'a' + 'A' : (c))
180
179
  #define FREE(p) if (p) { xfree(p); p = 0; }
181
180
  #define SETNULL(p) if (p && strlen(p) == 0) { p = 0; }
@@ -2901,8 +2900,8 @@ static VALUE connection_indexes(VALUE self)
2901
2900
  rb_str_freeze(table_name);
2902
2901
  rb_str_freeze(index_name);
2903
2902
 
2904
- unique = RTEST(unique) ? Qtrue : Qfalse;
2905
- descending = RTEST(descending) ? Qtrue : Qfalse;
2903
+ unique = (unique == INT2FIX(1)) ? Qtrue : Qfalse;
2904
+ descending = (descending == INT2FIX(1)) ? Qtrue : Qfalse;
2906
2905
 
2907
2906
  index_struct = rb_struct_new(rb_sFbIndex, table_name, index_name, unique, descending, columns);
2908
2907
  rb_hash_aset(indexes, index_name, index_struct);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-07 00:00:00.000000000 Z
12
+ date: 2014-05-17 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Ruby Firebird Extension Library
15
15
  email: rowland@rowlandresearch.com