@@ -49,9 +49,9 @@ function caml_bigstring_memcmp(s1, pos1, s2, pos2, len) {
4949//Provides: caml_bigstring_blit_ba_to_ba
5050//Requires: caml_invalid_argument, caml_array_bound_error
5151function caml_bigstring_blit_ba_to_ba ( ba1 , pos1 , ba2 , pos2 , len ) {
52- if ( 12 !== ba1 . kind )
52+ if ( ba1 . kind !== 12 )
5353 caml_invalid_argument ( "caml_bigstring_blit_ba_to_ba: kind mismatch" ) ;
54- if ( 12 !== ba2 . kind )
54+ if ( ba2 . kind !== 12 )
5555 caml_invalid_argument ( "caml_bigstring_blit_ba_to_ba: kind mismatch" ) ;
5656 if ( len === 0 ) return 0 ;
5757 const ofs1 = ba1 . offset ( pos1 ) ;
@@ -71,7 +71,7 @@ function caml_bigstring_blit_ba_to_ba(ba1, pos1, ba2, pos2, len) {
7171//Requires: caml_invalid_argument, caml_array_bound_error, caml_uint8_array_of_string
7272//Requires: caml_ml_string_length
7373function caml_bigstring_blit_string_to_ba ( str1 , pos1 , ba2 , pos2 , len ) {
74- if ( 12 !== ba2 . kind )
74+ if ( ba2 . kind !== 12 )
7575 caml_invalid_argument ( "caml_bigstring_blit_string_to_ba: kind mismatch" ) ;
7676 if ( len === 0 ) return 0 ;
7777 const ofs2 = ba2 . offset ( pos2 ) ;
@@ -90,7 +90,7 @@ function caml_bigstring_blit_string_to_ba(str1, pos1, ba2, pos2, len) {
9090//Requires: caml_invalid_argument, caml_array_bound_error, caml_uint8_array_of_bytes
9191//Requires: caml_ml_bytes_length
9292function caml_bigstring_blit_bytes_to_ba ( str1 , pos1 , ba2 , pos2 , len ) {
93- if ( 12 !== ba2 . kind )
93+ if ( ba2 . kind !== 12 )
9494 caml_invalid_argument ( "caml_bigstring_blit_string_to_ba: kind mismatch" ) ;
9595 if ( len === 0 ) return 0 ;
9696 const ofs2 = ba2 . offset ( pos2 ) ;
@@ -110,7 +110,7 @@ function caml_bigstring_blit_bytes_to_ba(str1, pos1, ba2, pos2, len) {
110110//Requires: caml_blit_bytes, caml_bytes_of_array
111111//Requires: caml_ml_bytes_length
112112function caml_bigstring_blit_ba_to_bytes ( ba1 , pos1 , bytes2 , pos2 , len ) {
113- if ( 12 !== ba1 . kind )
113+ if ( ba1 . kind !== 12 )
114114 caml_invalid_argument ( "caml_bigstring_blit_string_to_ba: kind mismatch" ) ;
115115 if ( len === 0 ) return 0 ;
116116 const ofs1 = ba1 . offset ( pos1 ) ;
0 commit comments