1
0
forked from GitHub/gf-core

fix warnings detected by MSVC

This commit is contained in:
Krasimir Angelov
2023-05-11 05:52:39 +02:00
parent a514500bba
commit 98165bd8b5
6 changed files with 7 additions and 7 deletions

View File

@@ -501,7 +501,7 @@ alignWords c e = unsafePerformIO $
c_phrase <- (#peek PgfAlignmentPhrase, phrase) ptr
phrase <- peekText c_phrase
n_fids <- (#peek PgfAlignmentPhrase, n_fids) ptr
(fids :: [CInt]) <- peekArray (fromIntegral (n_fids :: CInt)) (ptr `plusPtr` (#offset PgfAlignmentPhrase, fids))
(fids :: [CInt]) <- peekArray (fromIntegral (n_fids :: CSize)) (ptr `plusPtr` (#offset PgfAlignmentPhrase, fids))
free c_phrase
free ptr
return (phrase, map fromIntegral fids)