diff --git a/compiler2/asn1/OCSV.cc b/compiler2/asn1/OCSV.cc
index 14a9199f98a2cc50ed40e0427f3e1bd130380745..a26c214d78c225e34bbb24c6dca08030165d5260 100644
--- a/compiler2/asn1/OCSV.cc
+++ b/compiler2/asn1/OCSV.cc
@@ -529,7 +529,7 @@ namespace Asn {
           pos2++;
         pos2+=is_constraint(pos2);
         if(tb->get_at(pos2)->get_token()==KW_OF) {
-          pos2+=tb->get_at(pos2+1)->get_token()==TOK_LowerIdentifier?2:1;
+          pos2+=tb->get_at(pos2+1)->get_token()==TOK_LowerIdentifier?(size_t)2:(size_t)1;
           pos2+=is_type(pos2);
         }
       }